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:
|
||||
iframe_timer.start()
|
||||
can_die = false
|
||||
|
||||
#Respawn player
|
||||
current_state = State.IDLE
|
||||
sprite.visible = true
|
||||
#Respawn player
|
||||
current_state = State.IDLE
|
||||
sprite.visible = true
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||
if current_state == State.INACTIVE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue