7 actions in the Save category.
Each block mirrors how the action appears in the editor's sidebar.
Delete Save
Erases the save file, throwing away every value stored with Save Value. It is what a reset progress button does.
Phases StartEvery FramePhysicsEnd
Has Saved Value
Start
'score' | → True | → False Checks whether something was already saved under a name and branches on the answer. It is how a title screen tells a new game from a saved one.
| Input | Type | Default | Description |
| Key | String | 'score' | The name to look for, the same one used to save it. |
| Branch | Goes to |
| True | Where to go when a value was saved under that name. |
| False | Where to go when nothing was saved under that name. |
Phases StartEvery FramePhysics
Load Value
Start
Key 'score' | Default 0 | → Found | → Missing
Reads a value saved earlier under a name and stores it. When nothing was saved under that name yet, the default value is used instead.
| Input | Type | Default | Description |
| Key | String | 'score' | The name the value was saved under. |
| Default | Variant | 0 | The value to use when nothing was saved under that name. |
| Output | Type | Description |
| Result | Variant | Where to store the value that was read. |
| Branch | Goes to |
| Found | Where to go when a value was saved under that name. |
| Missing | Where to go when nothing was saved under that name, which is when the default is stored. |
Phases StartEvery FramePhysicsEnd
Save Value
Stores a value on disk under a name, so it survives closing the game. Use it for a high score, the current level or a menu option.
| Input | Type | Default | Description |
| Key | String | 'score' | The name this value is stored under, used again to load it. |
| Value | Variant | 0 | The value to write, such as a number, a text or a true or false flag. |
Phases StartEvery FramePhysicsEnd
Set Fullscreen
Puts the game window in fullscreen or back in a window. Pair it with Save Value to remember the choice on the next run.
| Input | Type | Default | Description |
| On | bool | true | True for fullscreen, false for a normal window. |
Phases StartEvery FramePhysicsEnd
Set Resolution
Resizes the game window and puts it back at the center of the screen. It only changes anything while the game runs in a window, not in fullscreen.
| Input | Type | Default | Description |
| Width | int | 1280 | The new window width in pixels. |
| Height | int | 720 | The new window height in pixels. |
Phases StartEvery FramePhysicsEnd
Set VSync
Turns vertical sync on or off. With it on the game matches the screen refresh rate and stops tearing, with it off the frame rate runs free.
| Input | Type | Default | Description |
| On | bool | true | True to sync with the screen, false to let frames run free. |
Phases StartEvery FramePhysicsEnd