Hello, first post here, i want to appraisal the work you did in AC and im happy with it.
The thing it bothers me is that i dont know how to save inventory items, i looked around the net and i see response like Remember Visibility and remmber Hotspot, but what about Remember Item. When i exit scene with item and return back to scene everything restart.
How can i save my inventory list while leaving scenes.
Thank you.
Comments
Remember scripts are only necessary for scene objects - Inventory items, like Global Variables, are automatically saved for you. What exactly is restarting when you return to the scene? Any items you're carrying should transfer from one scene to the next.
As it was happening just between first scene to others and not between others, I wondered what was the difference. And the only one is that I included my player prefab in my first scene because I wanted to change something without impacting the rest of the scenes.
So I noticed that to avoid this problem, I have to include my player in every scenes or in no scenes at all (so just add the reference in the settings).
Have you placed down the appropriate Remember scripts? As you haven't described what exactly is re-setting, I can't be more specific than that. But your Inventory should not be losing any items - unless your situation is as @Gog0 describes (a bug that I will try to fix now that I'm aware of).
Any screenshots you can post would help immensely.
Since you're using a custom Inventory Menu, I also want to rule out this being due to your UI. Switch your Menu Manager asset file to Demo_MenuManager (the demo game's one) and let me know if the problem still occurs.
As for your scene objects, you will need to add appropriate Remember scripts to your scene - add the RememberHotspot script to your Rope Hotspot, and the RememberVisibilty to your "curtain_closed_1024" sprite. This will tell AC to save these things for the next time you return to the scene. The same video above covers the principles behind this at the 1:24:24 mark.