Hello!
I start to do a new game where each locations has own layout in the project. The player can leave location when he enters into an exit point object (for example: portal, door, etc.). Then I change the layout by the action command "go to layout by name" and so on. The player can went back in this location again from another location.
In this situation I need to store data and I have no idea yet about true way of data save (locations, quests progress, NPC status, etc).
I guess I need to store some data by LocalStorage and another data by "Load/Save" method for save or load whole state. Anyway, I have no idea what will be a good true way for that. Perhaps, I must to save each location into separate save slot by "Save" method and keep another data as current location id variable in LocalStorage.
Maybe another way. Anyway, if I'll be save data by "Save" method after the player leave a location and "Load" again on a new location -- the data will be load from the last save.
In short I need your help - how to do all of this correctly!
Thanks and sorry, guys - an English isn't my native language.
Man saving stuff is pretty crazy lol to put it simple... one way to do it is by yes LocalStorage and also using Dictionary. A few of them actually... if you have items that you can get multiple of, then you want to make a Dictionary for each item. For the rooms/different areas... you want to somehow set up each area/room by UID... Wish i could go more in detail or share a capx but don't have the time since i'm really busy with my project and no capx i can share. I would just look up stuff on LocalStorage, Dictionary and maybe something like save and or pick by UID... hope this helps and good luck!!!