added ground pound

This commit is contained in:
derek
2025-06-16 15:21:31 -05:00
parent 942ab25abf
commit be26131b39
5 changed files with 23 additions and 7 deletions

View File

@@ -12,10 +12,7 @@ func Physics_Update(delta):
Transitioned.emit(self,"in air")
if Input.is_action_just_pressed("crouch"):
if character.is_on_floor():
Transitioned.emit(self,"crouched")
else:
character.velocity.y -= 25
Transitioned.emit(self,"crouched")
if Input.is_action_just_pressed("jump"):
character.jumps_remaining -= 1