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, addchild to the new room and removechild 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 isinsidetree 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