How do I keep Envoirment Settings

Get help using Construct 2

Post » Thu Oct 15, 2015 7:56 am

Hello friends! :)
I have a map, called "Players House". The player can switch on and off the lights. When I turn on the light, leave the map and return later, then the light is off. How can I keep the setting, which the player has set? Thanks for anybody help.
B
9
S
4
Posts: 100
Reputation: 1,187

Post » Thu Oct 15, 2015 8:00 am

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Thu Oct 15, 2015 8:38 am

@RamPackWobble: Thanks, but this isn't what I want. The basic savegame support stores all of settings, also layer visibility, opacity, positions, etc.. I need another solution. :)
B
9
S
4
Posts: 100
Reputation: 1,187

Post » Thu Oct 15, 2015 9:10 am

Three other suggestions:

- Add a Global variable LightsOn;
- Use persistent layouts;
- Use localstorage to save the state of the light;
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 15, 2015 11:48 am

@LittleStain: The Persist behavior is exactly, what I want! Thank you very much. ;)

~closed
B
9
S
4
Posts: 100
Reputation: 1,187


Return to How do I....?

Who is online

Users browsing this forum: Phacanu and 10 guests