How to get a string from variable in expression?

Get help using Construct 2

Post » Tue Mar 03, 2015 8:01 am

How to get string from instance variable In expression? Thanks in advanced.
B
5
Posts: 16
Reputation: 259

Post » Tue Mar 03, 2015 8:17 am

If Sprite1 has a Text instance variable Variable1, then

Sprite1.Variable1 gives you the string in an expression

e.g. System | Sprite1.Variable1 = "test"
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Mar 03, 2015 8:49 am

codah wrote:If Sprite1 has a Text instance variable Variable1, then

Sprite1.Variable1 gives you the string in an expression

e.g. System | Sprite1.Variable1 = "test"


Thanks but Somehow it doesn't work on set animation.
B
5
Posts: 16
Reputation: 259

Post » Tue Mar 03, 2015 9:02 am

Musetatron wrote:
codah wrote:If Sprite1 has a Text instance variable Variable1, then

Sprite1.Variable1 gives you the string in an expression

e.g. System | Sprite1.Variable1 = "test"


Thanks but Somehow it doesn't work on set animation.

Sorry, it works I put " " on text variable so it return "" text"" which broke.
B
5
Posts: 16
Reputation: 259


Return to How do I....?

Who is online

Users browsing this forum: TommyR and 23 guests