My guess for trying to implement Coyote time (a system that allows the player to jump a few frames/fractions of a second after they leave a platform) is something like check every frame to see if the player is on a platform. The frame that I see they are no longer on the platform I would record the game time to a variable, called “timeLeftPlatform”. Then if they tried to jump, I would see if the game time was within 0.5 seconds of “timeLeftPlatform”. I already have a jump working,
The thing im struggling on is how to record if the player is on, and then no longer on a platform, and then record when the player goes off the platform and use that to compare against the time limit in which i allow the play to jump within?
Or is there another way entirely that is better?/ actually works?
As for jump buffering, i have no idea how that would work
@EndyCodes@Kurt-Dekker I need some help with this. If I do the way stated above (by Kurt Dekker) the player can double jump if they spam the jump button.