Syntax question for displaying Text and a Value
sparkania
Member, PRO Posts: 300
quick question. I have a (real) game.wagon which constantly gets updated throughout gameplay. while I am testing, I like to put up a dummy actor which shows the value of that attribute.. just to see if I set everything right.
How do I get in a single Display Text behavior it to show some text which I write in like "You are now at" and then the game.wagon value next to it? I am sure this must be possible but I don't know the syntax for the line..
I have tried just putting in the value field You are now at (game.wagon)... but it comes up a 0 on the screen.
How do I get in a single Display Text behavior it to show some text which I write in like "You are now at" and then the game.wagon value next to it? I am sure this must be possible but I don't know the syntax for the line..
I have tried just putting in the value field You are now at (game.wagon)... but it comes up a 0 on the screen.
Comments
"You are now at"..game.wagon
Remember that you have to choose the attribute from the drop down menu, you can't write it directly.
The quotes are to delimit the text string and the two dots are to concatenate it with the following attribute.
how can you include space in it?
Press Alt + space.
Mental Donkey Games
Website - Facebook - Twitter
press ALT and then Space Bar.