How do i emit particles on the GDScript?

Godot Version

4.2.2

Question

I tried to emit GPUparticles3D when the enemy dies and then make the enemy disappear, when i used “emitting = true”, the particles didn’t showed up, how to fix that?

image

Thank you

This is because you remove the node immediately after playing. the particles are also removed as children of the node.

Thanks for the information bro

BTW if you want to delete the node after the particles stop emitting, you can connect to the finished signal of the GPUParticles3D. You can put your queue_free() call in the connected function.

1 Like

Thanks for the tips bro

1 Like