While most people know this, some don't. So, if you don't, here is how to make a shop.
first, create a text object that is a $ (or whatever sign of the currency you use)
After that, make a blank text object and name it "amount of money"
then enter the code.
after that, add a when 7 = 7 when block
the next step is adding a set text block.
You see those lines? Tap them.
next, create a new value. Call it "money"
now, set the color to whatever you want! I did random.
but look! You only have $0!
Let's pay you for your har.d wor.k. First, create a new object. A blank text is easiest, but anything will work as long as you use set invisibility to 100
add a when the game starts when block.
and then, add the pay machine thing, a set value block. Set the value money to whatever you want. I did 100
now you have money, but nothing to buy! Add a text object that says the price of the object, and the object itself.
Overpriced chips. Yummy.
now go back to the object that gave you money. Add a when (button you just made) is tapped when block.
then, increase value money by -price and increase value (object) by 1 (or more, it depends)(Check once if money is greater than price - one is ESSENTIAL)
you can add as many options as you want.
You can end up with shops like these!
- This helped me
- This helped me a little
- I already knew this
- OMG @THEMASTEROFAIRJITZU IS THE BEST AT STUFF LIKE THIS AND THIS IS AMAZZZZZZIIING!!
Votes are public.