Syntax question for displaying Text and a Value

sparkaniasparkania 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.

Comments

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    edited January 2013
    In the expression editor input: "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.

  • sparkaniasparkania Member, PRO Posts: 300
    this is gonna sound like a stupid question.. with the Quotes and the two periods?
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    edited January 2013
    Yes.

    The quotes are to delimit the text string and the two dots are to concatenate it with the following attribute.


  • sparkaniasparkania Member, PRO Posts: 300
    worked like a charm... Thanx
  • Dell7730Dell7730 Member, PRO Posts: 388

    how can you include space in it?

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    @Dell Agarpo said:
    how can you include space in it?

    Press Alt + space.

  • BBEnkBBEnk Member Posts: 1,764
    edited June 2015

    press ALT and then Space Bar.

Sign In or Register to comment.