#How can i play a particle effect while destroying an Object?

4 messages · Page 1 of 1 (latest)

cosmic hornet
#

Hi, ive made a particle effect that should play whenever a bullet is colliding with a wall. The particle effect itself works, but i doesnt work when im destroying the bullet with queue_free() the next line. I understand why it doesnt play (cause the particle effect is a child of the bullet, and if it gets cleared the particle effect will aswell) but is there a way to get around this?
Thanks!

weak steppe
#

well yeah there certainly is quite a simple way. you can move the partical node to the another node that would be freed, like even the root tree node. and attach a signal either a timer or a partical node signal to free it when the you are done with the particals

cosmic hornet
#

and just move it to the bullets position before it gets freed

#

ok thats quite simple