How to set up a shop???

Link: https://flowlab.io/game/play/1476516
Hello,
I am making a gameboy like game called Alien Planet.
Issue is I want to create a shop where you go in and buy items like health and so on.
Like example:
Player gets hit and loses health… Player goes shop and buys health and heals… Player goes back out gets hit again… Player buys health again… Player is healed.

Issue:
I cannot buy health again after I buy it the first time and I need have it where can buy multiple times.
another issue I have is I made it where when monsters die and you go to another level and come back and they stay dead, but issue is that it kills all of the same monsters. I need a way that it saves the ones that died, but not kill all of the clones that I haven’t even fought yet.

Are you using a different level to set up the shop?

Yes @Kraylos the shop has its own level

Are you also using save bahaviors. Try looking at games like A Stitch in Time that have shops in it.

I have gone through many shop examples, but I only find shops that allow you buy an item once and thats it

You could check out my example with Time Heist https://flowlab.io/game/play/1458695

Ty I will <3
another issue I have is I made it where when monsters die and you go to another level and come back and they stay dead, but issue is that it kills all of the same monsters. I need a way that it saves the ones that died, but not kill all of the clones that I haven’t even fought yet.
Can you help me also on that?

In your shop does it allow you to buy multiple of an item or only 1?

You could try using save behaviors. For instance, the ones you kill should have there very own save behavior. Then another block (off to the side) should read all the saves. The saves that indicate that the monster is dead will keep them dead, while the saves that say their alive or that have nothing saved will keep the monster alive. Ill hop onto my pc and make it in a bit.

And yes, it allows you to buy multiple items at a time as long as you have enough coins.

@Kraylos can you show me pictures of example? I have link to my game
https://flowlab.io/game/play/1476516

The only problem with this is that, it can be a bit time consuming making all these saves for each individual monster.

oof can you show a little example of two so I get the idea? and I can work from there.