Score variable won't display in text object

Get help using Construct 2

Post » Fri Dec 09, 2011 1:38 pm

Hi, I followed the Ghost Shooter tutorial and everything works besides the score display. The text property of the text object is as follows:

"Score : " &Score

I've tried '& Score' and '&Score', but it won't display the contents of the score variable. Here's the capx to help illustrate the problem:
http://www.mediafire.com/?k6wl6190w1x9wv3
B
3
G
1
Posts: 4
Reputation: 755

Post » Fri Dec 09, 2011 1:43 pm

AArgh... You can't put that in properties. The property box will take all that you enter in it as a string, it won't parse any variable.
You have to write that kind of stuff in event
[code]System: Every tick -> Text: set Text to "Score :"&Score[/code]
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Dec 09, 2011 1:47 pm

Ah, that would explain it.

Thanks!
B
3
G
1
Posts: 4
Reputation: 755


Return to How do I....?

Who is online

Users browsing this forum: makkancs, Matthew de and 36 guests