How do I make variables show up in a text box?

Get help using Construct 2

Post » Sat Mar 01, 2014 1:31 pm

Im trying to make a text box showing you're current XP and how many you need to level up, so ive done this: "Xp \ LevelUpXp" (those are the vars names).
But now its only showing the NAME of the first variable but not the other.
what do i need to do?
thanks
B
3
S
1
Posts: 5
Reputation: 780

Post » Sat Mar 01, 2014 1:39 pm

Make an event for the text box with this:
Every tick --> Set text to: XP&"/"&LevelUpXP
B
12
S
2
G
1
Posts: 26
Reputation: 835

Post » Sat Mar 01, 2014 1:45 pm

Hey i made the event already before, but did the set text wrong, thanks!
B
3
S
1
Posts: 5
Reputation: 780

Post » Sat Mar 01, 2014 6:15 pm

Hey post the capx so we can help you. ;)
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sat Mar 01, 2014 7:45 pm

every tick might be overkill - I would only update the text when your XP changes.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, senecaa and 22 guests