#how to add hang time or apex modifier to jump

4 messages · Page 1 of 1 (latest)

sleek meadow
#

I see you have in your jump script, a state bool for player.air_jump , but I dont see it in ur player script

#

but seems like that would be the way to go

#

you'll probably need:

  • Define a air_jump or hang_time state on player
  • Set a oneshot timer to start, and on timeout, flip hang_time state to false
  • In the physics process, check for hang_time. If yes, flip player gravity to 0 for its duration
  • When hang_time ends, set player gravity back to normal
oblique ember
#

player.air_jump is for air jump state. When player is in fall state and air_jump = true, player can air jump. Implementing hang time and coyote time while having fall state, jump state, and air jump state is giving me a headache. I would very much appreciate if you could help me.