How do I make a Area2D duplicate (C#)

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

I want to make it so whenever a body enters an area, it duplicates itself. The original one deletes itself while the duplicate is there. and I want it so whenever a body enters that duplicate, it duplicates itself while its duplicate is there, and I want it so whenever a body enters that duplicates duplicate, it duplicates itself while its duplicate is there, and so on and so on. How do I do this? I know how to detect collision already. but I don’t know how to create duplicates.

If you duplicate a scene and remove the original, you will end up with exactly what you had before the duplication. Also, bear in mind that as soon as the duplicate is created, it will fire the AreaEntered signal (in the same way the original did) and cause a cascade effect.

SteveSmith | 2022-11-28 20:04