The only problem with this is that is
The ground would have to be perfectly level and without any platforms in order to work,
Regards,
CAA14
Last edited by CAA14 (2013-04-04 18:22:48)
Offline
ZINGERX wrote:
when key up arrow pressed
forever
repeat (10)
change y by (10)
end
forever
repeat (10)
change y by (-10)
end
when [up arrow v] key pressed repeat (10)//change the 10 to a number you want. change y by (10)//change the 10 to a number you want. end repeat (10)//change the 10 to a number you want. change y by (-10)//change the -10 to a number you want. endFixed
Offline
when key [up arrow v] pressed forever repeat (10) change y by (10) end forever repeat (10) change y by (-10) end
Offline
GiorgosKarvelas365 wrote:
when key [up arrow v] pressed forever repeat (10) change y by (10) end forever repeat (10) change y by (-10) end
Yep. Without the forever loop, the test would only be run once...
Regards,
CAA14
Offline
The easiest way that works with platforms is this:
when gf clicked forever if <touching [platforms v]?> change y by (1) if <[up arrow v] key pressed?> repeat (4) change y by (10) end end else change y by (gravity, must be negative!) end end
Offline