Item Persistence .capx
This is an example .capx I was working on to show how item persistence works using dictionary and webstorage.
You click on a square to destroy it. Then you press 1 to save, refresh the page, then press 2 to load (squares you clicked previously should be destroyed again.)
However, I can't get it to work. When loading, either all of the squares are destroyed, or none of them are destroyed.
What am I doing wrong here? I have 3 different methods of loading the save data and destroying the previously clicked squares, but none of them work!