Jump to content

one jump.


Sarsen
 Share

Recommended Posts

Hi, sorry for my bad english, but a can't find decision. I create standart platformer on phaser, javascript. I use arcade physic.  After I pressed a jump button, my character jumps from the ground several times, while I release the button. I want its to jump once. I use this check to pressing:

if (keyJump.isDown && player.body.wasTouching.down)

Link to comment
Share on other sites

When I use this method, more other things do not work as they should - animations and frames of characters(((((((((. Someone knows basic algorithms for behavior characters in platformer like super mario or sonic. Please!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...