What is the current behavior?
\SpaceInfiniteGeneration\03-LayeredGeneration\LayeredWorld.gd
If you fly far away enough from a planet for it to queue_free() then fly back towards it to reload it, the code will begin to spawn hundreds of instances of that planet over time. This behavior also causes unreliability when planets are loaded. Sometimes they fail to appear at all if attempted to reload them.
What is the expected behavior?
Planets load/unload reliably, and without creating additional nodes every frame.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Run LayeredWorld.tscn
Travel away from any planet on-screen until it unloads
Travel back towards that planet until it should reload
Observe the remote tree as it is populated with planets over time
I'm submitting a...
Bug report
What is the current behavior? \SpaceInfiniteGeneration\03-LayeredGeneration\LayeredWorld.gd If you fly far away enough from a planet for it to queue_free() then fly back towards it to reload it, the code will begin to spawn hundreds of instances of that planet over time. This behavior also causes unreliability when planets are loaded. Sometimes they fail to appear at all if attempted to reload them.
What is the expected behavior? Planets load/unload reliably, and without creating additional nodes every frame.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.