Hello Zed2100
Thank you very much for your detailed instructions.
Actually I tried to modify and I messed everything up. I will try to start over this week end and see.
To save the game actually I did not want to use the save/load function. I first started to see if I can do something like
- on Player.X >= checkpointobject ==> set global variable checkpoint_x = Player.X and checkpoint_y = checkpointobject.Y
- on touch continuebtn ==> set Player position = checkpoint_x and checkpoint_y
But that did not work
Do you have a simple way to respawn the player and then keep everything same (meaning that distance run will continue to increment , coins also, etc)
Thank you
You're asking me to explain the specifics of your game to you, well I cannot do that because only you know the specifics. I'll ask you again to break down the problem into smaller manageable chunks.
First, it seems that you don't know how WebStorage works. If I were you, I'll read tutorials on that and implement some examples first until I understand it completely.
Then, you can do what I suggested in the previous post.
I believe this is the best way to learn and improve. When you re-implement your code, tag me Zed2100 and tell me how it went.
Good luck!