forked from team-sg/hero-mark-2
disable sg2083 and pan camera over to fami when defeated
This commit is contained in:
parent
12d6adaf94
commit
3ff2f837d8
5 changed files with 32 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue