I need help with my script for scrollex. can somone help? just leave the script and the one who helps will get 4 love its (even if i dont love it) 10 favorites (same as the last one) ps.
i know it starts like this...
<when green flag clicked>
or some thing like that...
Offline
Ok, here's how i know how to help.
Make a variable called ScrollX (or anything else).
Then make the sprite you want to move with these scripts:
[blocks] <when green flag clicked>
<set{ScrollX}to(0
<when green flag clicked>
<forever>
<if><key[left arrow]pressed?>
<change{ScrollX}by(-5
<end>
blocks]<when green flag clicked>
<forever>
<if><key[right arrow]pressed?>
<change{ScrollX}by(5
<when green flag clicked>
<forever>
<if> <touching color[color of ground]
<change y by(-5
<if><touching color[color of ground]
<change y by( 2
<end>
<when green flag clicked>
<forever>
<if><key[up arrow]pressed?>
<repeat( 20
<change y by(5
<end>
Then, make sprites for the ground, and call them terrain0, terrain1, depending on the order you want them to show, so terrain15 would be the 16th sprite to show. But you have to start with terrain0.
Then make these scripts for all terrains:
<when green flag clicked>
<forever>
<set x to( ((<{ScrollX}> <+>(( 480 <*>Number of terrain)) ))
<end>[/blocks]
Hope this helps!
~da123
Offline