detach from splat early by pressing 'grab'/'B' button
This commit is contained in:
parent
330ed25153
commit
1895b3b10b
4 changed files with 19 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue