Help Calculating Jump Arcs

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi

    I'm having a hard time calculating the actual algorith for the jump here.

    so far i've be using the usual: reducing the max vertical velocity by a stable amount.

    basically what i want to do is is have a jump with 128px height, which takes 64 frames to go from base to top to base again. i've got a frame rates of 30fps

    horizontally, when moving at top speed it goes at 4px per frame, that 120px a second.

    i want so that if going right at max speed, and the full jump height is realized (holding down the jump button), the trajectory should be an arc, or the top half of a circle.

    can anyone help me determine what starting and final acceleration/velocity i should have? and at which intervals i should decrease it?

    btw, the way i'm working it having Gravity be a constant, ALWAYS,

    and vertical acceleration always present, *when at ground it is the same as the gravity. * when falling it is 0, *and when jumping it is which ever amount we will determine, reduced at space intervals.


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)