This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-12-29 18:42:22

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

scroll help

you know how you can scroll from left to right.
How could you scroll from up to down and left to right?


Hai.

Offline

 

#2 2008-12-30 01:26:39

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: scroll help

This project does that. It basically takes more sprites than just left to right scrolling, and another variable.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2008-12-31 15:37:31

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: scroll help

think of a grid... and learn exactly y scrollx works. You can learn more abou scroll x in massive detail in my scrolling tutorial.

Offline

 

#4 2009-01-02 15:17:07

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: scroll help

i GOT it from hmnwilson. Thanks! from both of you!


Hai.

Offline

 

#5 2009-01-03 13:34:22

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: scroll help

So you could make a variable called scrollX and scrollY and use the same script with the variables?


Hai.

Offline

 

#6 2009-01-03 16:49:21

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: scroll help

fg123 wrote:

So you could make a variable called scrollX and scrollY and use the same script with the variables?

Pretty much, you just have to edit the scripts from regular left-to-right scrolling so that they read "Y" instead of X.

Offline

 

#7 2009-01-03 17:59:46

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: scroll help

shadow_7283 wrote:

fg123 wrote:

So you could make a variable called scrollX and scrollY and use the same script with the variables?

Pretty much, you just have to edit the scripts from regular left-to-right scrolling so that they read "Y" instead of X.

...and the number you would use would be 360, the height of the screen, instead of 480, the width of the screen.

Offline

 

#8 2009-01-04 07:56:33

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: scroll help

yea. Its usfull to make about 4 backgrounds to begin label them 1,2,3,4 and see how difrent values place them at diffrent areas. If you are still masivly stuck, my Tanks game has a good 2d scrolling engine.

Offline

 

#9 2009-01-04 17:33:15

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: scroll help

Ok.. Thanks to all!


Hai.

Offline

 

Board footer