Variable in a Text object?

Get help using Construct 3!

Post » Fri Aug 04, 2017 7:01 pm

Yeah that questions seems silly and I feel really stupid now... but I can't get a var or whatever inside a text object.
(I used the search but found nothing, only C2 articles which aren't working)

In Construct 2 you could do:
"Attack Power: " & Player.power


But in 3 all I get is everything as text, I even tried the JavaScript style with + and so on... nothing.

Please enlighten my stupid soul :/
B
6
Posts: 13
Reputation: 283

Post » Fri Aug 04, 2017 7:08 pm

Seems to work okay:

https://www.dropbox.com/s/056gwrah4f6as ... k.c3p?dl=0

You don't need the spaces.
B
20
S
8
G
3
Posts: 458
Reputation: 4,055

Post » Fri Aug 04, 2017 7:13 pm

I see, I guess my problem is to use it on the initial text instead of updating it with the system event.
Thought I could display the variable once without adding it with an event, but does not look possible.

Thanks for the help.
B
6
Posts: 13
Reputation: 283


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 2 guests