Here are some scripts that should help:
When gf clicked forever If <<touching [ground v]?> and <key [up arrow v] pressed?>> set [y velocity v] to (5)//Edit this to change the height of your jump. wait until <not <touching [ground v]?>> wait until <touching [ground v]?> else if <touching [ground v]?> set [y velocity v] to (0) end end When gf clicked forever if <not <touching [ground v]?>> change [y velocity v] by (-.5)//Edit this to change the strength of gravity. end change y by (y velocity)Note: You can replace
<touching [ground v]?>with whatever you use to figure out if your character is on the ground or not. Also, this is just a simple jumping script where you can jump through platforms. If you don't want that to happen, or if you want a more realistic jump, just tell me and I will get you the scripts for that.
Last edited by ErnieParke (2012-08-08 10:59:45)
Offline