[How fix] save & load when select level ?

Get help using Construct 2

Post » Mon Oct 07, 2013 6:07 am

Hi brothers,

I use global variable to select level (lock, unlock & completed), beside i need save & load level. But i fall in problem when "on start of layout --> currentLevel set value = 1. You are able to view file attach below,

https://www.dropbox.com/s/9bhe1251zmngyq1/select_level.capx


How can i use load & save with webstorage, any heroes join to help me,

Lots of love,

Jack
B
9
S
2
G
1
Posts: 14
Reputation: 1,177

Post » Mon Oct 07, 2013 8:46 am

Maybe this will help you

https://www.scirra.com/tutorials/266/webstorage-how-to-save-ingame-information
B
14
S
4
G
1
Posts: 42
Reputation: 1,775

Post » Mon Oct 07, 2013 12:46 pm

The webstorage value you retrieve is a string.

use int(WebStorage.LocalValue("currentLevel")) to set the number of currentlevel on load.
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 » Wed Oct 09, 2013 3:27 pm

Thanks @LittleStain,

So how can I set "unlock" for 1st Array on start layout,

Are you able to edit on direction then post it here,

Jack,
B
9
S
2
G
1
Posts: 14
Reputation: 1,177

Post » Wed Oct 09, 2013 4:14 pm

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


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests