HITBOX 360

This commit is contained in:
MarcEricMartel
2023-10-10 22:31:20 -04:00
parent 03d29aeddc
commit 1ca7e558e7
3 changed files with 15 additions and 12 deletions

View File

@@ -84,9 +84,9 @@ func endAttack():
animatedSprite.play("default")
func receive_damage(dmg):
print(currentHp - dmg)
if !isAlive:
return
if currentHp - dmg <= 0:
currentHp = 0
call_deferred("die")