I'm working a bit on an FPS game in Godot 3.
I've made a gun shooting laser projectiles.
I want the laser projectiles to leave a particle trail behind them.
The problem is - when the projectile hits a target, I need to remove the projectile, but keep the particle tray around until all particles have dissolved.
What I have now is queue_free() in the script whenever the projectile hits - which works but the trail disappears awkwardly, instead of naturally fading out.
I've tried using an AnimationPlayer to call queue_free() on my Projectile's root node, after a short delay - but that crashes the game after I fire a few shots.
How should I approach this?