![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | carlospaiva |
Hey guys, i was having issues using “queue_free()”, it was crashing my game sometimes without any error mensage, so I tried to fix this bug in so many different ways and found this one,
get_parent.remove_child(self)
But i want to know how exactly it works, in documentation it says: “The node is NOT deleted and must be deleted manually.” I tested killing over 1000 enemies in my game expecting to reduce performance, but there is no impact on it, actually, the performance is better using it
If I have to delete the node manually and I didn’t, why it doesn’t affect the performance?
Why it doesn’t show anywhere in the “profiler” the removed enemies?
If I use change_scene() will the removed child be deleted as the rest of the previous scene?
Should I use queue_free() after remove child? It seems to work
My native language is not english, so forgive me if there are errors in my text.