How do I save Hi-score w/ local storage on multiple layouts?

Get help using Construct 2

Post » Sat Sep 03, 2016 5:04 pm

Hi, I have been working on a mobile game, that has multiple layouts. One the main game and the other the boss battle. From the tutorial (https://www.scirra.com/tutorials/5343/h ... -game-capx), I have managed to save the hi-score for the main game. Yet, the hi-score you make from fighting the boss does not crossover to the main game. Help.
B
8
S
3
Posts: 8
Reputation: 622

Post » Sat Sep 03, 2016 5:57 pm

You need to 'include' the global variables in each layout, have you done this?
B
46
S
16
G
73
Posts: 2,080
Reputation: 43,669

Post » Sat Sep 03, 2016 6:05 pm

I would create a separate event sheet for local storage and include that from every layout.
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Sat Sep 03, 2016 6:33 pm

plinkie wrote:You need to 'include' the global variables in each layout, have you done this?

Oh, thanks. I tried that yesterday and it did not work, but now it is working. So, thanks.
B
8
S
3
Posts: 8
Reputation: 622


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 34 guests