How do I make a score

Get help using Construct 2

Post » Fri Jul 17, 2015 9:47 am

So at the moment this is what I'm doing:
>I create a text, displaying the word 'score'.
>I Make a global variable called score = 0
>When my character collides with object Add to Variable, Add 1.
>Every tick, edit text: "Score &" Score

This isn't working for me. The text just displays "Score" or "Score 0".
Can you see if I'm doing something wrong? I just want something that makes the score increase by 1 everything I hit this invisible object (Like flappy bird).
thanks :D
B
5
S
1
Posts: 37
Reputation: 463

Post » Fri Jul 17, 2015 9:54 am

It should probably be, assuming the variable is a number,

Set Text to "Score: " & Score


Notice the variable doesn't have quotes, and the ampersand is outside of the quotes, unlike yours.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Fri Jul 17, 2015 2:33 pm

It works, thank you :D
B
5
S
1
Posts: 37
Reputation: 463


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 62 guests