Skip to reading
The Variable Designer

19. Room changes, restarts and saves

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Designer variables belong to the current game state, rather than to the room in which they were first changed. If the player earns points in the workshop and walks into the hall, the same score is still available there.

Figure 23. The preview has moved to the adjoining hall. The scene geometry changes while the shared puzzle values remain available.

Source table from 19. Room changes, restarts and saves, page 32
ActionWhat happens to variables
Change to another roomThe current runtime values continue with the game.
Stop, then start a fresh previewA new runtime copies the authoring starting values. Startup actions can then change them.
Save ProjectSaves designer definitions. It does not capture the current play session.
Save Game / a game slot actionStores the current runtime variables with the saved game state.
Load Game / a game slot actionRestores the saved variables. It does not start each one again from its designer value.

The hall shown here is only a test of shared state; you do not need to build another room to use Variable Designer. You can check the same behavior with any two connected scenes in your own project.

A variable folder does not alter these rules. Neither does the fact that the action changing it belongs to a particular character or object. To keep separate facts, create separate IDs.

Page 32 of 37Permalink
Go to page