How do I save a sprite into webstorage

Get help using Construct 2

Post » Sun Mar 23, 2014 11:36 pm

So after I select a sprite I want it to be destroyed but I am not sure how to save the destroyed status into webstorage so it doesn't change back to being available to select. Any help is greatly appreciated. Thank you.
B
4
S
1
Posts: 27
Reputation: 504

Post » Mon Mar 24, 2014 11:01 am

sprite on destroyed, webstorage set local key 'key_name' 'somevalue'
system on start of layout local key doesn't exists 'key_name' spawn sprite at x_pos, y_pos
else do_something_else
B
11
S
2
G
1
Posts: 202
Reputation: 1,580


Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 25 guests