|Topic was automatically imported from the old Question2Answer platform.
Hello, I’m making a top-down 2D like Zelda (recently binding of isaac).
However, there was one problem. After creating a room in each scene, random room generation in the level scene, add_child to the new room and remove_child the current room (using call_deferred) via the area signal when the player exits the door.
However, if the object and enemy are loaded at the same time, an is_inside_tree error occurs.
After that, when the game starts, I add_child to all the rooms at once and then run it, but it is also loaded all at once, so the speed is very slow and my laptop is cut off slightly even in the game.
After that I thought about multi-threading. I’m not sure if this multithreading will solve my problem, can I get some advice?
Thanks, and I’m really sorry for my short English