8,484
edits
Paradox-01 (talk | contribs) m (→Text pages)  | 
				Paradox-01 (talk | contribs)  m (→Selected knowledge:  Game instance: for storing information across levels)  | 
				||
| Line 254: | Line 254: | ||
Beneath the Game Icon can be set however I couldn't spot its used location yet. Maybe it will show up later when the game gets "cooked".  | Beneath the Game Icon can be set however I couldn't spot its used location yet. Maybe it will show up later when the game gets "cooked".  | ||
====Game instance====  | |||
When we store information in an game instance it won't disappear after loading the next level.  | |||
Let's say there would be a menu button or hotkey in a pause menu widget to disable hint texts.  | |||
Variables of widgets are destroyed as soon as you close a widget.  | |||
We could save our choice of showing the hint text in the level blueprint but as soon as we proceed to the next level the hint text would be shown again.  | |||
So, we go up in the hierarchy and store the information in the game instance.  | |||
To make the information really persistent (between game starts or when loading a save game) all we would need to do is saving the information from the game instance to a save game.  | |||
edits