I need help making shops for buying things I already have the money established.
Offline
Have the items people can buy in the shop as sprites, and call them up using a broadcast when the person enters the shop. You will need to make a variable, but I assume you have, if you have the money.
When [Potion_Red] clicked change [money v] by [-1] say [You bought potion!]In that example, the person would lose 1 of their money for buying the "potion" and then it tells them they have bought it successfully.
Offline
Or:
When [potion] clicked change [money v] by [-1] add [potion] to [items v]that way, the game remembers that you have bought it. When you need to use it, do something like:
forever if <action happens> if <[items v] contains [potion]> do action involving potion end end end
Offline
You also have to take into account that you can only buy someting if you have enough money, so try this:
When [potion v] clicked if < (money) < (1) > say [you don't have enough money!] for (2) secs else change [money v] by (-1) add [potion] to [items v] endthat should work.
Offline