How do I display text and variable with text object?

Get help using Construct 2

Post » Thu Jul 24, 2014 6:54 pm

Hello. I am trying to spawn a text object that displays text and a global variable together like this, "+ NANOPARTICLES (global variable number) nanoparticles". What is the proper syntax to do this. Thanks, Morgan.
Image
B
20
S
4
Posts: 382
Reputation: 2,964

Post » Thu Jul 24, 2014 8:00 pm

Use & to join them like

"You Scored" & MyScoreVar
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948

Post » Thu Jul 24, 2014 8:02 pm

Thanks. Yes, I figured it out. "Text" &variable &"text"
Image
B
20
S
4
Posts: 382
Reputation: 2,964

Post » Thu Jul 24, 2014 8:04 pm

Cool - it's all good, anyone else searching will find the answer. :)
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948


Return to How do I....?

Who is online

Users browsing this forum: megatronx, RetrocadeMedia and 1 guest