Shop

Get help using Construct 2

Post » Fri Aug 30, 2013 4:21 pm

Hello guys i am trying to create one shop on my game but problem is here i want to make Save image and load image. When player exit and enter again in game see image if player dont have buy it he stay with image Buy Image and if player have buy item stay with image Purchased.
Thanks :)
B
13
S
6
Posts: 107
Reputation: 2,181

Post » Fri Aug 30, 2013 6:59 pm

anyone guys?
B
13
S
6
Posts: 107
Reputation: 2,181

Post » Fri Aug 30, 2013 9:01 pm

I can gave you a kind of idea , I am not very good in C2.

I think you can check the condition of buy and not with Boolean variable. So if the condition if 0 it is buy and you can change the image that the object is buy else 1 is a condition in which a player can purchase the item. Something like this. Hope this idea helps you.

We have a lot more experienced members and you will get some help for sure after some time.

B
96
S
20
G
15
Posts: 198
Reputation: 14,571

Post » Fri Aug 30, 2013 11:25 pm

You should use webstorage, create a key "Purchased" after of purchasing a stuff, when player restarts the game, use a condition on start layout:

If "Purchased" key exists, then add action or whatever like deleting images buy and creating an image "purchased".


B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sat Aug 31, 2013 12:26 am

can make one in capx file please?
B
13
S
6
Posts: 107
Reputation: 2,181

Post » Sat Aug 31, 2013 2:58 am

please stop asking for capxes and go check the how do I section

C2 has a huge database of examples that you must harness to control the unlimited power of the alchemy book that is C2

Cheers ;)
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Yahoo [Bot] and 7 guests