In my game you can save the game, but I don't know how to do that? has anyone got a ged to explain it or a tutorial. I have searched the forums for one but couldn't find one
thanks Knuckle Crunch Games
saveVars("filename", "SaveGroup1");
DarkParadox wrote:saveVars(); is a function that lets you save a group of variables to a file.
When adding a variable using the script editor interface, you type in a "save group" like this one:
You can add as many of your variables as you want of any type to the save group.
Then, when you want to save these variable's values to a file, you use:
- Code: Select all
saveVars("filename", "SaveGroup1");
The next time you use the code loadVars("filename", "SaveGroup1"), the variables in that group will be set to the values they had when the file was saved.
Back in my other DLC demo I made for you, I used a variable I made that was an array, and saved it using saveVars() in different states.
Users browsing this forum: Google [Bot] and 1 guest