how to make a game store, I could buy only once?

Get help using Construct 2

Post » Thu Apr 26, 2012 7:06 pm

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
B
6
S
1
G
1
Posts: 41
Reputation: 911

Post » Thu Apr 26, 2012 8:52 pm

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.
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Thu Apr 26, 2012 9:33 pm

Make boolean for every sprite,and to do that they are were all true?
or what?
B
6
S
1
G
1
Posts: 41
Reputation: 911

Post » Thu Apr 26, 2012 11:10 pm

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.
B
7
S
2
G
6
Posts: 3
Reputation: 3,248

Post » Fri Apr 27, 2012 5:30 am

i try to make like you say,but nothing has changed
B
6
S
1
G
1
Posts: 41
Reputation: 911


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 24 guests