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

@@ -13,6 +13,9 @@ func Physics_Update(delta):
standard_movement(delta)
apply_gravity(delta)
if character.is_on_floor():
Transitioned.emit(self,"on foot")
enable_wall_rays()
if Input.is_action_just_pressed("jump") and character.jumps_remaining > 0:
@@ -23,8 +26,10 @@ func Physics_Update(delta):
air_dash_left -= 1
character.velocity += character.movement_input().normalized() * air_dash_amount
if character.is_on_floor():
Transitioned.emit(self,"on foot")
if Input.is_action_just_pressed("crouch"):
Transitioned.emit(self,"ground pound")
if can_wall_run():
start_wall_running()