Author Topic: Variable jump with FlxControl  (Read 1831 times)

caladan21ph

  • Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Variable jump with FlxControl
« on: Sun, Jul 12, 2015 »
Hi,

Anyone here have any idea how to make variable jump( height of jump depends on how long the player presses the key) work
with FlxControl?

Thanks!

Check out my game journal: http://alternatdev.wordpress.com

adamSrgnt

  • Member
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: Variable jump with FlxControl
« Reply #1 on: Mon, Aug 17, 2015 »
You could set your Y velocity to zero when the player lets go of the key.