SAVE AND CONTINUE COCOONJS

Get help using Construct 2

Post » Thu Aug 01, 2013 5:46 am

Guys how save and continue my game in 4 layout
The first layout is my menu
-newgame
-continue
then

the 2nd layout was the 1st quest of my game

the 3nd layout was the 2st quest of my game

the 4nd layout was the 3st quest of my game

B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Fri Aug 09, 2013 8:06 am

Using the save and load system actions, on load the layout will move the to the layout saved at.

Else if your using local webstorage you can save a variable that identifies your current level and create a condition that will "go to layout" depending on said variable.

I use something similar for the max level you can enter in my game.

I set a field in an array with the value layoutname (i name the levels 1,2,3,4...) then save the field in the array to webstorage.

when loading it back into the array you need to convert it back into a int place your webstorage within the brackets int()
B
10
S
2
G
1
Posts: 77
Reputation: 1,278

Post » Sun Aug 11, 2013 11:24 am

tnx jWstudios
B
5
S
2
G
3
Posts: 53
Reputation: 2,468


Return to How do I....?

Who is online

Users browsing this forum: justintime0185 and 12 guests