Give a higher starting jump speed than used in the example. Then increase the downward pull of gravity to compensate. Adjust both values until the jump gives the arch you desire.
please see...
Type: Posts; User: jps
Give a higher starting jump speed than used in the example. Then increase the downward pull of gravity to compensate. Adjust both values until the jump gives the arch you desire.
please see...
Actually the 10 refers to the speed on the y axis. When jump is pressed, the "up" speed is 10. How you treat this depends on how you treat the coordinate system on the screen.
Java counts the top...
Use a gravity to have a constant downward force.
When jump is pressed set the vertical speed to a higher number. 10 for example. Every cycle apply gravity. In this example lets call gravity 2....