can I die now?
This commit is contained in:
parent
bf1ed7ebbf
commit
a27ed68d23
@ -44,8 +44,6 @@ func _ready():
|
||||
atk1r.set_disabled(true)
|
||||
atk2l.set_disabled(true)
|
||||
atk2r.set_disabled(true)
|
||||
list.append($"../BatSpawnable")
|
||||
list.append($"../BatSpawnable2")
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
@ -199,6 +197,9 @@ func _on_sprite_animation_looped():
|
||||
attack()
|
||||
else:
|
||||
currAtks = maxAtks
|
||||
if (is_dying):
|
||||
queue_free()
|
||||
else:
|
||||
is_dying = false
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user