disable sg2083 and pan camera over to fami when defeated

This commit is contained in:
Haze Weathers 2024-02-29 00:40:38 -05:00
parent 12d6adaf94
commit 3ff2f837d8
5 changed files with 32 additions and 4 deletions

View file

@ -65,7 +65,7 @@ func _physics_process(delta: float) -> void:
func _input(event: InputEvent) -> void:
if state == State.DEAD:
if state == State.DEAD or state == State.INACTIVE:
return
if event.is_action_pressed("shoot") and (state == State.STAND or state == State.FORWARD or state == State.BACK) and energy >= bullet_energy:
shoot()