how to make a game store, I could buy only once
I make shop at game,but i don't know hot to make that I could buy only once
There are a lot of ways to go about that. One way, you could add a "Purchased" boolean variable to each item in the store (assuming they're done with Sprites).
Then use a boolean check before user is allowed to purchase the item.
Develop games in your browser. Powerful, performant & highly capable.
Make boolean for every sprite,and to do that they are were all true?
Whenever you add an instance variable, there's a default.
The default for boolean is false, but you can change it to true.
Then you can either hide the items or stop the buying process if they're purchased.
i try to make like you say,but nothing has changed