August 2016
Beginner to intermediate
837 pages
17h 27m
English
As games get more and more complex and longer and longer, players will often need to play a game within multiple sessions. However, by default, players will need to start over from scratch. In this recipe, we will be going over how to save a variable and load it at runtime.
Before we start working on this, we need to have a project created and set up. Follow the Setting up your development environment recipe all the way to completion.
To give you an idea of how it works, let's do a simple example of saving a player's position and rotation, which we can return to using keyboard input:
Read now
Unlock full access