How can I put My Score on another layout?

Get help using Construct 2

Post » Mon Aug 25, 2014 9:21 am

I have the Score text in my "Layout Game" ; how can I put it into my "Game Over" Layout?
I've tried to do it and just shows Score: 0 (but the one in the "Layout Game" works perfectly. Help please?
B
8
Posts: 22
Reputation: 356

Post » Mon Aug 25, 2014 9:28 am

could you show the events you are using to do this?

could be as simple as not using a global variable, but without knowing how you set it up there's no way to be sure..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 25, 2014 2:12 pm

hi,
i will try to demonstrate as simple example

layout a (player touch the coin update score and show it) and when go to next layout the score is shown ... ok

layout A
player on collisions with coin === coin destroy , add 1 to score (global variable) , set text box score to "" & score ( global variable)

layout B
on start of lyout === set text to "" & score ( global variable)

if you do like that , it will work
B
44
S
16
G
8
Posts: 791
Reputation: 8,279

Post » Mon Aug 25, 2014 2:16 pm

I did the same of the video: https://www.youtube.com/watch?v=06-LgQxceGg

thank you
B
8
Posts: 22
Reputation: 356

Post » Mon Aug 25, 2014 2:32 pm

Seems like you didn't do exactly the same as in the video, because in the video it works..

Like I said, without seeing your capx and/or events we can only guess...
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 25, 2014 5:52 pm

Thankyou very much littlestain now it works; something was wrong with the text, now it works perfectly.
B
8
Posts: 22
Reputation: 356


Return to How do I....?

Who is online

Users browsing this forum: chrisyamao, Meqara, Twili and 1 guest