A lot of people ask how to do scrolling so here is an explanation
Scrolling is basically where the main sprite (or the one you want to move across a scrolling place) does not move and the whole terrain below him moves. Here is how you do it.
If you only want side to side you do this
Make a ground sprite and set the y position so it's on the bottom. Add this script to it.
when green flag clicked
forever start
set x to scroll x (make a variable called scroll x) + 480 * 0
forever end
to move right you do this. put it under any sprite, it does not matter.
when right key pressed
change scroll x by -(how much you want to move it).
to move left just change it to left key and do a positive movement.
now put your main character somewhere and it will move.
for scrolling up and down
Make a terrain sprite and put this script under it.
when green flag clicked
forever start
set y to scroll y(make a variable called scroll y) + 480 * 0
forever end
to move up do this. put it under any sprite, it does not matter.
when up key pressed
change scroll y by -(amount you want)
to move down you just set it to down key and change scroll y by a positive number.
set the main sprite anywhere and it will move around.
http://scratch.mit.edu/projects/MaxFlyboy/2224521
here is a link to a project that is isometric (the ground is the whole screen and has scroll x and scroll y) it has more complicated moving scripts but has the same main idea.
Hope this helps.
Offline
Congrats on making this.
It's very easy to do, though. xD
Offline
Maybe you should explain how it works with multiple terrains?
Offline