Setting value of variable to text

Get help using Construct 2

Post » Sat Aug 03, 2013 8:02 am

Hi, how could I set a variable to text? I have a text named "story" with variable "textvalue" but i don't know how to set that "story" will always show a text, which is setted in "textvalue". thanx a lot.
B
5
Posts: 22
Reputation: 494

Post » Sat Aug 03, 2013 8:58 am

Hi,

Story --> set text to Story.textvalue
B
6
S
1
Posts: 17
Reputation: 459

Post » Sat Aug 03, 2013 9:00 am

In Events

Every Tick -> Story -> Set Text to textvalue

If you want to mix text and variable you can use the & symbol to mark and separate variables from text. Remember text has to be in brackets "".

Every Tick -> Story -> Set Text to "The value of textvalue is " &textvalue

B
10
S
3
Posts: 233
Reputation: 1,537

Post » Sat Aug 03, 2013 9:30 am

Thanks a lot!!
B
5
Posts: 22
Reputation: 494


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 28 guests