Moderators, please sticky this so less-advanced Scratch members can find out about Scrolling.
So, you want to learn how to make scrolling games, huh? Well, let me take you step by step:
Step one: Make a variable that will stand for the scrolling process. Let's say we used ScrollX as our variable.
Step two: Make the moving sprite (or the stage) a script that says:
When green flag clicked
FOREVER:
-IF key left arrow pressed
--change ScrollX by 5
-IF key right arrow pressed
--change ScrollX by -5
Step three: Make three or four sprites that represent the terrain. You know, a little grass, hills, or mountains. Make sure that their width takes up the whole screen.
Step four: For the first terrain sprite, make a script like this:
[blocks]<when green flag clicked>
<forever>
<set x to( (( ScrollX <+> (( 480 <*> 0 )) ))[/blocks]
And for the second terrain sprite, replace that last zero with a one...
and for the third.. 2, and so on...
step 5: Make your movement techniqes and you have yourself a Scrolling game! I hope this has helped you! And... Scratch on!
Last edited by joeyman (2008-07-03 00:18:05)
Offline
http://scratch.mit.edu/forums/viewtopic.php?id=2440 You mean that?
Offline
I know it doesn't make all of the sense... It's 12:23 in the morning where I am! goodnight!
Last edited by joeyman (2008-07-03 00:21:48)
Offline
joeyman wrote:
I know it doesn't make all of the sense... It's 12:23 in the morning where I am! goodnight!
Lol, 10 here
Offline