How do I display a variable on the screen

Get help using Construct 2

Post » Fri Jan 30, 2015 4:10 pm

I have a variable that I want to see it on the screen?
Thank You
:roll:
B
7
S
1
Posts: 53
Reputation: 535

Post » Fri Jan 30, 2015 4:34 pm

Just add a Text object and use 'Set Text' to set its value to your variable.

So if your variable was called 'myScore, then

Set Text = myScore

You should really read the manual and at least read the Platform tutorial, as such things as this are covered.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,418
Reputation: 59,522

Post » Fri Jan 30, 2015 6:49 pm

Yes, I know, I did read it and it does not work. It will not let me use the health var. that I have.
In the box I typed "health:" & health and it will not take it.
You do not have the required permissions to view the files attached to this post.
B
7
S
1
Posts: 53
Reputation: 535

Post » Fri Jan 30, 2015 7:06 pm

It's probably something like bug.health

When the parameters box is open you can move your mouse above it and choose from a list the exact variable that you want.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Fri Jan 30, 2015 7:31 pm

Thanks I got it to work :lol:
B
7
S
1
Posts: 53
Reputation: 535


Return to How do I....?

Who is online

Users browsing this forum: CrudeMik, FabianB, work3 and 44 guests