Help: Item shop

Hello, I have set up and item shop for my game. How do I set it do when they press a button to buy something it checks to see if they have enough points to buy it and if they don’t it doesn’t allow them to buy it and if they do have enough points it does let them buy it. Thanks in advance

4 Likes

Hi @Lerious, and welcome to the forum!

I recommend looking at some of the tutorial projects, which will answer most of your questions. In a nutshell, you’d add a button sprite to your game, then add events to manage the logic, something like:

if button/sensing/touch up AND pointcount/greaterthan/minimumPoints
do clone purchased item

if button/sensing/touch up AND pointcount/lessthan/minimumPoints
do errormessage/appearance/hidden/no

3 Likes

I know how to do a shop and I can make a test game for you so it can help!

3 Likes

https://ready.app.link/EDC6aJY1G7

3 Likes