Is it possible to have a 2D projectile on collision destroy itself and spawn another Area2d at the same location

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ballarja

I’m new to the GoDot engine and GDScript language trying to figure out if this mechanic is worth pursuing or if I should just look for another alternative.
Thank You for help

:bust_in_silhouette: Reply From: exuin

Yes, it’s possible. Just store the position of the projectile somewhere, use queue_free() on the projectile to destroy it, and then use to create a new Area2D and set its position to the projectile’s previous position.

awesome thanks so much

Ballarja | 2021-01-10 20:32