How to mantain a button "clicked" switching layouts?

Get help using Construct 2

Post » Wed Feb 26, 2014 7:26 pm

Hi everybody guys, I'm really getting crazy because of the in-game shop of the game that i'm working to isn't working well

If I buy a thing in this shop, I want that I will be everytime able to use it again, without buying it again
please, can you help me with an example or explaining what to do?

Thanks in advance!
B
4
S
1
Posts: 11
Reputation: 414

Post » Wed Feb 26, 2014 8:43 pm

@Falkons

And here is a capx example of a shop working like you wanted. It's commented too :)
You do not have the required permissions to view the files attached to this post.
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Wed Feb 26, 2014 9:10 pm

@Guizmus

Thank you a lot! It is now working perfectly, but if I close the game, it will clear everything... How can I save the setting with webstorage?
B
4
S
1
Posts: 11
Reputation: 414

Post » Wed Feb 26, 2014 9:19 pm

@Falkons

Use the built-in save function, In the system object, there is a save function. Here is the tutorial.

Edit :
And now an example.
You do not have the required permissions to view the files attached to this post.
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Thu Feb 27, 2014 1:47 pm

Thank you again, now my shop works well :)
B
4
S
1
Posts: 11
Reputation: 414


Return to How do I....?

Who is online

Users browsing this forum: Bootfit and 25 guests