final score

Get help using Construct 2

Post » Wed Mar 19, 2014 11:03 am

is the "score" Variable a global variable? Are you updating the variable on the game layout with the score?
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Mar 19, 2014 11:05 am

the score is a global variable. and yes the global variable is located on the game layout event sheet where its set to update, and works fine on the game, but doesnt on the game over layout, it just shows its default value of 0
B
4
S
1
Posts: 46
Reputation: 542

Post » Wed Mar 19, 2014 11:09 am

hmm, without a capx (that someone could have a look into it), it is a bit hard to find out what might be wrong.

I am @work at the moment, without access to construct, but when I'm back home (unfortunately just in about 8 hours) I can set up an example and share it. Maybe someone else is quicker :)
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Mar 19, 2014 11:12 am

ah ok thanks very much for your help :)
B
4
S
1
Posts: 46
Reputation: 542

Post » Wed Mar 19, 2014 12:32 pm

quickly installed C2 on a VM Machine, here you can download an example: Link

Update: Also example now attached to the post!
You do not have the required permissions to view the files attached to this post.
Last edited by Ubivis on Wed Mar 19, 2014 1:11 pm, edited 1 time in total.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Mar 19, 2014 12:40 pm

Upload you capx and i help you
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Wed Mar 19, 2014 4:50 pm

still havin a bit of trouble.

my score system works fine on the actual game layout its just when it goes to the gave over layout to show the final score.

is it because the scoring system is on the event sheet of the game layout and not linked to the game over layout?

its so confusing
B
4
S
1
Posts: 46
Reputation: 542

Post » Thu Mar 20, 2014 8:14 am

Have you downloaded my example above? It is really simple. Look at the items I placed, look at the variable I created and look at the events I set up.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Previous

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], marc254 and 5 guests