Need help with score

Discussion and feedback on Construct 2

Post » Wed Feb 18, 2015 5:34 am

So I've been building a 2d game and I use layouts as levels and when I play to level 2 I get there and my score is reset back to 0. Can't seem to figure it out. I would appreciate any help. Thanks
B
5
Posts: 6
Reputation: 237

Post » Wed Feb 18, 2015 5:52 am

Is it in a new layout? Try use the Webstorage to save the highscore between levels
B
32
S
6
G
2
Posts: 317
Reputation: 2,801

Post » Wed Feb 18, 2015 6:45 am

i hope thats the right way to build levels is each level in separate layouts
B
5
Posts: 6
Reputation: 237

Post » Wed Feb 18, 2015 6:52 am

oh man thank you for your help. ive been stump on that score thing for 3 days. if you for any reason get stuck dont hesitate to hit me up.
B
5
Posts: 6
Reputation: 237

Post » Wed Feb 18, 2015 6:57 am

You should check out the Beginner tutorials https://www.scirra.com/tutorials/top they will help you learn alot of basics which will help you understand how to make alot of your own events

also for your need here check out Global variables https://www.scirra.com/manual/83/variables
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Wed Feb 18, 2015 9:13 am

thanks ill check that out
B
5
Posts: 6
Reputation: 237

Post » Wed Feb 18, 2015 12:36 pm

Global variables is the way to go! Webstorage is overkill.

Unless you have highscore table you want to save. Or if you want to add save game, then webstorage is good, but for just basic game it is enough with global variables.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Wed Feb 18, 2015 3:46 pm

helena is right do not use Webstorage
B
239
S
37
G
15
Posts: 1,923
Reputation: 39,758

Post » Wed Mar 11, 2015 7:06 pm

so no webstorage ok
B
5
Posts: 6
Reputation: 237

Post » Wed Mar 11, 2015 7:09 pm

i will try the global variables. this is a basic game im building just so i can learn construct 2 a bit better. thank you so much for all of your support and i hope to be making some good games soon.
B
5
Posts: 6
Reputation: 237


Return to Construct 2 General

Who is online

Users browsing this forum: 2Dpysics, doomredmage, technofou and 2 guests