Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
130 stars 2 forks source link

Implement coyote time for jumping #1092

Open iamgreaser opened 7 months ago

iamgreaser commented 7 months ago

Is your feature request related to a problem? Please describe.

Some floors are bumpy. Attempting to jump while walking on one of these floors often fails.

Furthermore, input and/or output delay can exist and it can be quite excessive.

Describe the solution you'd like

A delay, possibly adjustable, between no longer being on the ground and no longer being able to jump.

A roughly 1/3-second delay should be adequate. This is the figure I tend to use for things and is the delay used in some of the Tony Hawk games.

Describe alternatives you've considered

Replacing all of the relevant objects' colliders in the middle of a Choppaya World session with BoxColliders, which is not practical, or doing the same in the middle of the JP side of a Creator Jam, which often plays out like a Choppaya World and therefore is also not practical.

On top of that, it does not compensate for input/output delay.

Customising the walk locomotion may be possible, but that requires emulating a jump, and ensures that the default remains problematic.

Additional Context

No response

Frooxius commented 7 months ago

I think this would be a good option. We'll make this configurable when it's added.