detach from splat early by pressing 'grab'/'B' button

This commit is contained in:
Haze Weathers 2025-03-15 06:04:57 -04:00
parent 330ed25153
commit 1895b3b10b
4 changed files with 19 additions and 2 deletions

View file

@ -58,6 +58,10 @@ func _physics_process(delta: float) -> void:
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed(&"jump"):
state_chart.send_event(&"jump_pressed")
if event.is_action_pressed(&"grab"):
state_chart.send_event(&"grab_pressed")
if event.is_action_released(&"grab"):
state_chart.send_event(&"grab_released")
func kill() -> void: