InverNessian / SafeguardsOfLeyto

For development of my game by the same name.
1 stars 0 forks source link

Scene Transitions #13

Closed InverNessian closed 4 years ago

InverNessian commented 5 years ago

I'll need to get the GameController to load new scenes soon. This goes hand-in-hand with the Menu issue, since what will need to happen is the game's initial scene be a menu, which when clicked loads missions/save files/etc.

InverNessian commented 5 years ago

The Main Menu can now load scenes according to a scene index. Under build settings there is a window where you can drag in scenes. This assigns them a numerical index, so it's just a matter of knowing which scene you want to load and passing that into the GameController. I think I will have an enum for that? Or perhaps there is a variable that stores the "current mission" in SaveState that we can use to track which mission a player should load.

InverNessian commented 5 years ago

There should also be a "previous scene" field so we can go back if needed.