I have been trying to figure out how to make my sprite jump from a spring. So I went on youtube a didn't the results I w so wanted. Can someone tell me the script? _meow_
Offline
It depends what you mean by "bounce". If you want it to simply change direction, then the script is fairly simple. If you want it to simply go up, wait, then come down, the script is also fairly simple. However, if you want a "realistic" jump, with going up quickly, slowing, then speeding up as it falls, then you'll need to do a more complicated script using y velocity.
Offline
When gf clicked Forever if <touching color [color of what you bounce off]?> Point in direction <(0) - <[direction v] of [this sprite v]>> Move (4) stepsIf your moving by changing x and y do this instead:
When gf clicked Forever If <<key [right arrow v] pressed?> and <touching color [color of bouncy thing]?>> Change x by (-3) end If <<key [left arrow v] pressed?> and <touching color [same color]?>> Change x by (3)End
Last edited by turkey3 (2012-03-23 18:54:39)
Offline