8,131
edits
Paradox-01 (talk | contribs) |
Paradox-01 (talk | contribs) m (→Game instance) |
||
Line 258: | Line 258: | ||
When we store information in an game instance it won't disappear after loading the next level. | When we store information in an game instance it won't disappear after loading the next level. | ||
Let's say there | Let's say there is a menu button or hotkey in a pause menu widget to disable hint texts. | ||
Using variables in a widget is a dead end. They are destroyed as soon as we close the 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. | 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. | ||
Line 267: | Line 267: | ||
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. | 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. | ||
====Main func==== | ====Main func==== |
edits