forked from team-sg/hero-mark-2
famira can die
This commit is contained in:
parent
5b520f0a46
commit
1274e989b4
3 changed files with 200 additions and 9 deletions
|
@ -83,7 +83,9 @@ func hurt(amount: float, can_duck: bool = false) -> void:
|
|||
anims.play("die")
|
||||
|
||||
|
||||
func knock_back(amount: float) -> void:
|
||||
func knock_back(amount: float, can_duck: bool = false) -> void:
|
||||
if can_duck and state == State.DUCK:
|
||||
return
|
||||
knockback += amount
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue