Can't display text and attribute, why?

akichan22akichan22 Member Posts: 9
edited March 2012 in Working with GS (Mac)
I write in a display text:

"objmove".. game.obj move

but said me invalid expression! why??

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Also, if you're using a boolean attribute, the value can only be displayed by itself (Display Text game.objmove). Using Display Text with concatenation (Display Text "objmove "..game.objmove) on a boolean value gives an invalid expression. Not sure why.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • lukey5227lukey5227 Member Posts: 111
    You can't type in the attribute name.
    To make it work, click the arrow pointing to the right and make it face down. This should open a box. Click the "Game" section in the box. Then scroll down until you see the attribute you're looking to open. Double click it and it should automatically display in the text box. You can then click the checkmark.

    Hope I could help!
  • MotherHooseMotherHoose Member Posts: 2,456
    edited March 2012
    right as always! … @tatiang

    but you can always put more than one displayText on the actor

    displayText1--the name for the boolean √ Wrap inside actor
    displayText2--the boolean … leave Wrap unchecked
    or, just align one left and the other right or center
    change the color and the font and fontSize on each Display behavior

    image MH
Sign In or Register to comment.