Unlock levels

Get help using Construct 2

Post » Wed May 29, 2013 6:54 pm

yes I did it is not about bug in level choose layout.... but in levels...

it always change web storage save to last played levels global number ....
this condition (if level > web storage save) then does not work....Raiper3412013-05-29 18:56:27
B
25
S
4
G
2
Posts: 318
Reputation: 2,481

Post » Wed May 29, 2013 6:59 pm

so, the vaue of the webstorage is changing in levels, so the condition is always true, hum

maybe if you set the key to

max(level, int(WebStorage.LocalValue("save")))

this expression chooses the biggest value
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
48
S
20
G
18
Posts: 2,111
Reputation: 16,771

Post » Sat Jun 01, 2013 6:37 pm

Thx for help Aphrodite, godnes of Love :)
B
25
S
4
G
2
Posts: 318
Reputation: 2,481

Previous

Return to How do I....?

Who is online

Users browsing this forum: gianghl1983, MAD4R4, PauloMarcio and 9 guests