private variable to text?

Get help using Construct 2

Post » Sun Jan 08, 2012 11:18 pm

hon private variable to text?
B
5
G
1
Posts: 10
Reputation: 895

Post » Sun Jan 08, 2012 11:25 pm

In the Every tick event, add the action Text -> Set text.

Using the & operator, we can convert a number to text and join it to another text string. So for the text, enter:

"Score: " & Score (or the name of your variable)

The first part ("Score: ") means the text will always begin with the phrase Score:. The second part (Score) is the actual value of the Score global variable. The & joins them together in to one piece of text.

Extract from the beginner's guide to C2.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Mon Jan 09, 2012 7:10 pm

need example .caps please
B
5
G
1
Posts: 10
Reputation: 895

Post » Mon Jan 09, 2012 8:15 pm

You have a full bunch of examples capx in the c2 folder\examples folder of your C2 installation.

Check the Ghost shooter.capxKyatric2012-01-09 20:15:32
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: PixelatedTrip and 0 guests