Pages: 1
Topic closed
ok so i got him to move left and right but the problem with that is whenever i have him walk left he walks backwards! and another thing i cant get the screen to move, and i cant make him jump! what do i do?
Offline
here:
first make a variable called 'scrollY'
then make a script like this:
[blocks]<set{ scrollY }to( 0
<forever>
<if><key[ up arrow ]pressed?>
<repeat( 5
<change{ scrollY }by( 2
<end>
<repeat( 5
<change{ scrollY }by( -2
<end>
<end>[/blocks]
and then for the terrain sprite:
[blocks]<forever>
<set y to( (( 0 <-> <{ scrollY }> ))
<end>[/blocks]
and that's it.
Offline
Topic closed
Pages: 1