Add Text To a Text Attribute?

theCodeMonsterstheCodeMonsters Member Posts: 359
edited November -1 in Working with GS (Mac)
Hey guys, I was wondering... How can I add text to a text attribute, Using the "Change Attribute Behavior". I do not want to completely change the attribute. I just want to add text to it if a button is pressed.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, straightforward enough: Change Attribute behaviour: change game.yourTextAtt To; then put in your new text. (By the sound of it, your previous text + new text) :-)

    If the text is not different everytime, but just more, another way is to have all of your text additions as separate Text attributes, and in the Rules, when such and such condition is true, Display text, TextAtt01.." "..TextAtt02, etc

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    One method:

    Just make an actor with your text in.

    And change it's position based on whether the button is pressed or not.

    When button = true
    display text
    change x pos to whatever

    otherwise
    change x position to whatever

    ---
    Get Honey Tribe on iTunes
    "...a touch above the rest in the endless running genre" 148apps.com
    "Honey Tribe: Colony Collapse is not only a remarkably endearing little game, but it's also incredibly addictive." Pocket Gamer
    "If you’re a nature lover, or simply a lover of well-executed games, Honey Tribe is worth checking out. Download it today." AppAdvice.com
    Say hi on Twitter
    Like us on Facebook
    www.HoneyTribeStudios.com
Sign In or Register to comment.