forked from team-sg/hero-mark-2
respawn only happens after dying (fixes #64)
This commit is contained in:
parent
3ac3c7343c
commit
512469f732
1 changed files with 3 additions and 4 deletions
|
@ -348,10 +348,9 @@ func die():
|
||||||
if use_iframes:
|
if use_iframes:
|
||||||
iframe_timer.start()
|
iframe_timer.start()
|
||||||
can_die = false
|
can_die = false
|
||||||
|
#Respawn player
|
||||||
#Respawn player
|
current_state = State.IDLE
|
||||||
current_state = State.IDLE
|
sprite.visible = true
|
||||||
sprite.visible = true
|
|
||||||
|
|
||||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||||
if current_state == State.INACTIVE:
|
if current_state == State.INACTIVE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue