how make jump like geometry dash ?
iraqiraq
iraq baghdad , muslimMember Posts: 89
hello every body i played game name geometry dash
and i need make jump like this ! the hero jump just one time .. if he in air and you clicked the screen he cant jump
if he on ground and you click the screen he can jump just 1
if you along pressed the screen he Repeat the jump
how i make like this ?
Comments
Here's some Pseudo to help you along:
If (touch is pressed) and (player is colliding with ground)
DO
(jump action)
Basically, test if the player is touching the ground, and if so, allow jumping. Otherwise, don't. You'll need to add some other qualifiers to prevent weird behaviour with the BOTTOM of platforms if you can jump up and touch one, but that should get you started.
can you make demo please ? becuze i dont understand you what you mean touch and and allow jump ?
or write the rule and i follow the rule
very thnx i maked