How do I make an in game shop?

Get help using Construct 2

Post » Sun Apr 12, 2015 5:03 am

So right now I have the game saving the coins to a global variable, it works perfectly. Now on my shop screen I have two characters, the main one that you get for free and then one next to him that costs 5 coins at the moment to purchase. When I push the button to purchase him the game takes you back to the main screen where you can start it up with the newly purchased character. But when I go back to the store and select the free character and then go back in the paid for character now costs 5 coins again. How do I make it so this doesn't happen and when I purchase him he is always purchased? Thank you in advance.
B
4
S
1
Posts: 27
Reputation: 504

Post » Sun Apr 12, 2015 6:56 am

You can set the purchase button to a variable. Once pushed, change the variable from, let's say a 0 to a 1. Make the purchase button only clickable when the variable is equal to 0.

Let me know if this helps.
B
7
S
1
Posts: 57
Reputation: 728

Post » Thu Apr 30, 2015 10:05 am

is there any tutorial as how to use IAP behavior ???
Image
B
36
S
13
G
1
Posts: 99
Reputation: 3,051


Return to How do I....?

Who is online

Users browsing this forum: evillair, Yahoo [Bot] and 64 guests