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,501

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
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

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,501

Previous

Return to How do I....?

Who is online

Users browsing this forum: dop2000, Kin and 32 guests