Jumping Actor

robert.mccarthyrobert.mccarthy Member Posts: 165
edited November -1 in Working with GS (Mac)
Hi All,

I am trying to get my character actor to 'Jump'.

I can get him 'Jumping' up, and then get him moving left/right with the jump, but it moves too straight.

Does anyone know how to implement an good 'arch' jump?

Cheers,

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Did you see the standard platformer template in GS? There is a hero that jumps as you want to.
    I think that you can just copy the rules and behaviors to your project.
  • mangaroomangaroo Member Posts: 419
    Well you need to know which direction the actor is going in so you can set the direction of the arch. But once you have that just set some linear horizontal velocity as well as your vertical to your jump.

    Set the direction to right if linear momentum in x is >0, if < then set it to left.
    multiply linear horizontal velocity by -1 to make it go left

    -this only results in an arch when your character jumps WHILE moving (ideal)...providing he doesn't just roll forever in your game plan.

    Up + left/right velocity (as long as there is gravity) should result in a nice arch. Play with the velocity to get it to your liking..probably something like 550 jump 50 right/left

    Im new but hope that helps

    you should probably also set it to vary the horizontal (x) velocity based on the actual momentum beforehand...so basically some min-max values. That would make a pretty nice jump imo
Sign In or Register to comment.