varible "power" jumping

morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
edited December 2012 in Working with GS (Mac)
how would i set up "jumping" logic where a quick tap and release gives a minimum power/height to the jump but a hold of the jump can vary anywhere from minimum power to max power?
it needs to work while also controlling left and right movement so x movement is going to be constrained during the jump or in the middle of it

Comments

  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    Bump
    Currently I was thinking change variable y speed and also accelerate but the accelerate messes with the x movement
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    bump
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    any ideas?
  • UtopianGamesUtopianGames Member Posts: 5,692
    One way to do it would be to increase an integer by 1 every X seconds depending on how quick you want to reach the maximum when your pressing the jump button and have a simple change velocity Y if the integer is less than say 5 and reset it to 0 when you collide with actor with tag platform.

    I have a modified version or our endless runner template with this feature in and it works really nice.

    Darren.
Sign In or Register to comment.