What would be the best way to build a room to room system like the RE series?

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

I’m currently building a classic RE-like game and would like to know what would be the best method to change rooms. Scene to scene, or is there an easier method? How would you go about instanciating objects in the scene or not if you picked them up already.

Since Godot is scene-based, I would go with a “scene to scene” design. As for instancing scenes, and keeping track of where everything is, you can use autoloading singletons for each scene so as to save the game state. Mind you, there are pros and cons to singletons (see the programming pattern on that for more details). But the pattern works well for most cases.

To learn more about using singletons in the engine, check out the documentation on autoloading a singleton.

Ertain | 2019-10-24 08:32