When my character enters the shop it goes to a different layout so I made it so it saves the previous layout since I don't want the coins to reset. So when the person buys something from the shops the coin variable is reduced and the item variable is increased. But when I press the button it loads the layout and the previous variable so the coins haven't reduced and the item variable is 0. How would I solve this solution?
Many thanks if anyone can help me.