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
46
S
14
G
7
Posts: 603
Reputation: 8,096

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
79
S
37
G
13
Posts: 958
Reputation: 15,391

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
46
S
14
G
7
Posts: 603
Reputation: 8,096


Return to How do I....?

Who is online

Users browsing this forum: CJacobsSA and 4 guests