v1.0.1
Added OffGroundTime and IsAtCeiling into consideration
Controls:
- Attack/Interact: add a line in console output, useful to visually separate the data
- Jump: Start recording. Stops when no longer pressing Jump and the player character lands on the ground.
Data format:
new: 33,3334, old + delta: 33,3334, OffGroundTime: 33,33334
CanJump: True, IsAtCeiling: False
Player is jumping
---
newandold + deltacorrespond tojumpTime, one after the function call, the other before, but adjusted to the change that is usually applied to get current time, represented by delta. In this debug tool it is basically used to show how long the current jump has been going, how physics frames look like, and when the jump time gets cleared or stays at 0 (which is the only time when these 2 values are different).CanJumpis a function in-game that represents when coyote time is applied. The max length of coyote time is 125 ms, but can be lower a bit due to frame cutoff.OffGroundTimeandIsAtCeilingshould be self explanatory.Player is jumpingshows up whenever player pressing Jump button was detected. When the button is not pressed, the line is empty.