How to make a in the air jump

joho345

  • Posts: 16
Hi,

I work on a game, where the player hangs in the air. The controls are just left and right. If the player is not pressing any button, he falls by gravity on the ground and is dead. If he presses left or right, he makes a small jump in the are and in the direction of left or right (see pic in the attachment) How can I program this thing?

t4u

  • Posts: 418
on button push actor in y direction and push actor in x direciton (or -x depending on arrow). This will do a jump and moxing to the dside. Do you really need a fountain like movement?
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.

Tutorials + downloads:
http://t4upl.blogspot.com/

joho345

  • Posts: 16
Yes I need this fountain like movement. With your solution it does not work. Has somebody an other solutions?

t4u

  • Posts: 418
You need to make it as function that describe position(time).

You got two phases:
1. going up - simple increase y over time
2. circle to the side - check parametrical circle equation
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.

Tutorials + downloads:
http://t4upl.blogspot.com/