I forgot the scripts on how to scroll! can someone remind me?
Thanks!
-Joeisawesome
Offline
Yes yes!! Just look:
[Blocks]<when green flag clicked>
<forever>
<set x to( (( <{ Scroll X }> <+> (( 480 <*> 0 )) ))
<end>[/blocks]
That's for the first terrain. When you add more terrains you have to put
[blocks]<set x to( (( <{ Scroll X }> <+> (( 480 <*> 1 )) ))[/blocks]
Also, you have to put:
[blocks]<when[ left arrow ]key pressed>
<change{ Scroll X }by( 1
[/blocks]
or any number you want
Hope that helped!!
Last edited by valitakpa (2008-12-19 20:22:54)
Offline
The original scrolling tutorial is in the stickies area
http://scratch.mit.edu/forums/viewtopic.php?id=2440
Offline
oh! I forgot! One of my friends, yambanshee, has a scrolling tutorial http://scratch.mit.edu/projects/yambanshee/263478 And it is very good. Maybe you'll refresh your memory with it
Offline