Hello. I'm making a platformer game, and I'm stumped on a script, and I do not know how to fix it. I'm trying to make a working jumping script, but it seems to not be working. The way it's not working is the fact that the player you control stays in the air if you hold the up arrow key.
Can somebody please post a script that will help me have a working jumping script? Thank you in advance.
Offline
Something like this:
when gf clicked set [y-vel v] to (0) forever if<touching [ground v]?> set [y-vel v] to (0) if<key [up arrow v] pressed?> set [y-vel v] to (5) end else change [y-vel v] by (-.2) end change y by (y-vel)
Offline