I want to develop a game like "Jumping Joe". I want my player to jump and move left or right to the bars with single touch same as "Jumping Joe". How do I Jump and Move my player left or right with one touch ??
Thanks in advance ................!!
add platformer behavior
if touch.x is > than player.x
if touch.x is < than player.x
hope this helps
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much for your help .... But I have tried this buddy ... It only simulates "Jump" ... but it doesn't simulate "left" or "right" ... when I run the game the player only jumps on any touch but doesn't move at all ...!!
Probably because ON TOUCH only fires once. Try IS TOUCHING
Thanks buddy .... it works on "IS TOUCHING" condition. But i want to make this same as "Jumping Joe". That means my player have to jump and move left or right some fixed distance in one touch.
Thank you very much guys ^_^ ... I have solved the problem