how do i make my player only jump if its on the ground
THINGTHING
Member Posts: 84
how do i make my player only jump if its on the ground
Comments
Here's what I do. Create a boolean game attribute called game.jump and a second boolean called game.touchingGround.
Create a button actor with the rule:
When touched is pressed
-----change game.jump to true (1)
OTHERWISE
-----change game.jump to false (0)
In the jumping actor
Rule
When collides/overlaps with ground
change game.TouchingGround to true (1)
OTHERWISE
change game.touchingGround to false (0)
Second Rule:
When game.TouchingGround is true
------Rule - when game.jump is true
----------Timer for .8 seconds (do NOT check the run to completion)
--------------accelerate 90 to scene speed of 800
rs gold
runescape accounts
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io