All you need to do is make a post on the forum and someone will get to you. I have made a demo that I know works. There are some things you might consider bugs but this is a demo of saving. If anything is not to your specifications, than I can fix them or add things. I could get a copy of gameEditor if I wanted, maybe even without paying with the point policy. The problem is my use of Linux. I will hopefully have a virtual machine running windows soon and may get myself a copy. Anyway how you use this may differ, I don't know if you require a menu.
The variables
playerX
playerY
Score
These are all ints and they are all in the save group vars. Now, when you click the save button, mouse button down (left), there is a script.
- Code: Select all
playerX = player.x;
playerY = player.y;
saveVars("vars.sav", "vars");
The first two lines are required as you need to use those variables set so you can save the actors position. The third line is very important. It saves a file, "vars.sav", with the variables in the group, "vars". Now you have saved your game. Now to load your previous save, you have to restart the game. The create event for the view has the following code.
- Code: Select all
loadVars("vars.sav", "vars");
player.x = playerX;
player.y = playerY;
The loadVars function is very similar to the saveVars, but instead it loads the specified file into the specified group. Since playerX is now what you want the real player's x to be, you must set it as such. Same goes for the y. The Score does not need to be set, as it is not tied to an actor variable, like x and y. If you have any questions, I can help you.