How to save player location and stats even after exiting?
I can't seem to figure out how to save my players location and then load it when I press c.y! Sorry I can post any code at the moment
I think the easiest way to achieve this is to use Pianofire's Persistent Data functions.
Take a look at the thread here (it has got some nice examples):
And here is a link to the project:
@vinicity but I'm not to sure on how to use it I think I save with savestore but loadstore doesn't do anything
LoadStore() reads from the file and populates your store. But if there is no save file it won’t do anything. It returns true if there was a save file to read and false otherwise.
Once you have read the file with loadStore() you can use getValue(“name”) where name is the name you have given the value, for instance “score”.
Sorry, I forgot to write that you need a global variable for the store like this:
store = 
The you can populate the store with the values you want to save like this:
And finally, for actually saving your store to the save file, you do:
@vinicity hmmm it's confusing for me could get an example
I have done an example for you : 6QA63MNDNN
You don't have to understand it all in order to be able you use it
Cursor keys move the red dot. Y restores the position to the last save and X saves the position and exits
Ok thanks I'll give it a try
It kind of works now when I got to getvalue with the press of a button my player stops moving
I got it work now thanks for all the help