I think I haven't had much sleep to work this simple objective out. All I want is my player sprite is to jump left or right when touching the left or right of the screen. I have pinned invisible boxes left, right and above his head to take on the simulated actions. I don't want the player to be able to walk left or right, just jump left and jump right or jump straight up if touching directly above his head. ANy ideas? This is what I have so far... but it will jump the first time then just goes left or right without jumping.
Hey DevDan : You can find a commented capx example attached to this post.
Jumping is kind of a trigger. You only want to fire it at the start of a touch, and not continuously. And according to your code, the character will continuously move if the player is touching the object.
Good luck going forward,
Develop games in your browser. Powerful, performant & highly capable.
Ahh perfect. Thanks — Will be a good start for my kangaroo hopping