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
40
S
12
G
7
Posts: 603
Reputation: 7,656

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
50
S
21
G
8
Posts: 844
Reputation: 10,299

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
40
S
12
G
7
Posts: 603
Reputation: 7,656


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, MACPK, nicklowkcmagic, OddConfection and 23 guests