Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Improving jump functionality #69

Closed FailSpy closed 6 months ago

FailSpy commented 6 months ago

Issue resolutions: Fixes #68: Now when you jump off the moving platform, you inherit its upwards velocity. Additionally, jumping doesn't get spammed anymore. Fixes #59: You can now disable crouch jumping, and by changing the collider on a crouch jump, crouch jumping now works. I haven't refined it any more than that.

Phazorknight commented 6 months ago

Amazing work! Just merged it into main. Small note: When you hold jump the player jumps repeatedly until stamina runs out. I don't mind this behaviour though. 👍🏼

FailSpy commented 6 months ago

Yep, I'm aware. Given that the code was using "is_pressed" I assumed that holding = jump at every opportunity as desired behavior.

Easy enough to switch to a different behaviour by using "is_just_pressed", though probably at that point want to implement a jump buffer