Hi all,
I am currently storing the player's inventory in an array and displaying their inventory in a bar at the bottom of the screen.
On start of my game I trigger an "itemPickUp" function so the player is stocked with their default items. The problem is when i switch layouts, these items get destroyed. They are still stored correctly in the array but I'm not sure how to draw them again to the screen.
I was hoping "on start of layout" would trigger on start of any layout but this is not the behaviour.
Is there a way to trigger an event on start of any layout? Or is there some better way I could be doing this?
Thanks in advance for your help!