forked from team-sg/hero-mark-2
another day, another add_child made deferred
This commit is contained in:
parent
e40e3de653
commit
e2452ed14c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func _exit_tree():
|
||||||
remove_child(particles)
|
remove_child(particles)
|
||||||
particles.global_position = global_position
|
particles.global_position = global_position
|
||||||
particles.emitting = false
|
particles.emitting = false
|
||||||
get_parent().add_child(particles)
|
get_parent().call_deferred("add_child", particles)
|
||||||
get_tree().create_timer(particles.lifetime, false).connect("timeout", particles, "queue_free")
|
get_tree().create_timer(particles.lifetime, false).connect("timeout", particles, "queue_free")
|
||||||
|
|
||||||
#Wall Collision
|
#Wall Collision
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue