forked from team-sg/hero-mark-2
fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)
This commit is contained in:
parent
9435089f21
commit
72733db609
23 changed files with 55 additions and 63 deletions
|
@ -111,6 +111,7 @@ func hurt(amount: float, can_duck: bool = false) -> void:
|
|||
emit_signal("health_changed", hp)
|
||||
if state != State.DEAD and hp <= 0.0:
|
||||
state = State.DEAD
|
||||
emit_signal("died")
|
||||
anims.play("die")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue