Add text to text attribute

gandgand Member Posts: 54
edited November -1 in Working with GS (Mac)
I there a way in expression editor to add a static text to a text attribute ?
I try this with no success:

image

Or a way to join two text attributes?

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    Try this :

    game.ModuleImage..".png"

    Cheers
  • anithmukanithmuk Member Posts: 235
    This isn't related to the question, but just clarify for me, what does the whole 'something.."something" ' actually do?
  • Rob2Rob2 Member Posts: 2,402
    .. is the concatenation operator (two full stops / periods) and simply joins strings together.

    So in Tshirts example if game.number was equal to 678

    "number"..game.number..".png"

    becomes number678.png very useful for all sorts of functions but vital for manipulating images.

    Great for other things too http://gamesalad.com/forums/topic.php?id=10507
  • gandgand Member Posts: 54
    Thanks a lot.
    Indeed I'm trying to switch actor's image by user with mouse down/inside + key pressed.
  • gandgand Member Posts: 54
    Sorry but this gave me no any text display:

    image
  • gandgand Member Posts: 54
    tshirtbooth said:
    also it should be game.moduleimage..".png"
    Opps, I missed the double dot after my attribute name, I suppose it was just a sort of placeholder.
    Thanks.
Sign In or Register to comment.