How do I combine my coyote jump feature with my double jump?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Jump on candies, collect candies and earn score!!!
  • Hi! Any help would be appreciated!!

    I currently have my game's double jump working pretty well, as well as the coyote jump. The only issue is the player's first jump is a coyote jump, the input for a double jump won't register-- no double jumps coming out of a coyote jump.

    I'd like to be able to double jump coming out of a coyote jump.

    I've attached pictures of my event sheet for reference!

    Tagged:

  • I think when you do a coyote jump, both events 18 and 22 are performed, so the JumpPhase is set to 1.

    Try these changes:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's what you could do. Have a variable that tracks available jumps, set to 2 upon touching the ground. If the player jumps, that decreases. The player can only jump if the counter is greater than 0. Double jump, easy enough.

    For coyote time you use a timer (behavior or variable). If the player leaves the ground, the timer starts. When the timer runs out, decrement the jump counter. If the player jumps, cancel the timer (if running) and decrement the jump counter.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)