How do you put the total punntos of a variable in

Get help using Construct 2

Post » Thu Nov 24, 2011 5:37 pm

How do you put the total punntos of a variable in a text box on the screen of the game?
B
1
G
1
Posts: 4
Reputation: 558

Post » Thu Nov 24, 2011 7:01 pm

I'm assuming punntos means points? Anyway, first make your text object (name it TextOne) and drop it onto the layout where you can see it. Press run layout to make sure it displays (it should just say 'text').

If it displays correctly go to your event sheet and create an 'every tick' event (under system, general, every tick).

Then add the action SetText (under TextOne, Text, SetText).

In the text box enter the full variable name minus the ''s (exmpl; 'ScoreObject.Score', or for a global variable, just 'Score')

Now every tick it will set the text to the value of whatever variable or string you're feeding in.
Don't lose your work. Backup your game with Dropbox.
B
43
S
10
G
10
Posts: 1,106
Reputation: 9,147


Return to How do I....?

Who is online

Users browsing this forum: Muini and 29 guests