Changing Text

Get help using Construct 2

Post » Fri Oct 26, 2012 11:03 pm

I am a bit confused on how to make a text say "Fuel Remaining: 100%" And be able to change the 100 to other things. Whenever I try something I get a Syntax Error. (The Variable is called Fuel) I've done:
"Fuel Remaining:"& Fuel"%"
"Fuel Remaining:" Fuel"%"
"Fuel Remaining:" &Fuel"%"

I know its a stupid question but I am completely stumped.
B
43
S
12
G
7
Posts: 603
Reputation: 7,761

Post » Fri Oct 26, 2012 11:06 pm

I forget if you need to add a / character before the % or you need to double quotation it ""%""

You got the & correct.

"text1" & "text2"
B
63
S
26
G
9
Posts: 863
Reputation: 11,697

Post » Fri Oct 26, 2012 11:09 pm

Thanks! I didn't know you needed to add anything to extra quotes to amke it a string.

FIX: "text 1" &variable &"text 2"
B
43
S
12
G
7
Posts: 603
Reputation: 7,761


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests