fixed frame 1 water jumping

This commit is contained in:
JHDev2006
2025-09-21 21:43:32 +01:00
parent 9a6c27be1f
commit 873ef53dfd
2 changed files with 9 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ func grounded(delta: float) -> void:
if player.velocity.y >= 0:
player.has_jumped = false
if Global.player_action_just_pressed("jump", player.player_id):
player.handle_water_detection()
if player.in_water or player.flight_meter > 0:
swim_up()
return