Display text positioning?

GamersRejoiceGamersRejoice Member Posts: 817
edited November -1 in Working with GS (Mac)
So I have an actor displaying a number. Currently the number is just in the center of the actor but what I need is for the number to be below the actor so is there a way I could just tell the display text to positionY-35 or something simple like that?

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    No, with the "display text" behavior you can write a text only (you can't configure the position). The only way is to make a transparent actor with the text, and place it where you want.
  • GamersRejoiceGamersRejoice Member Posts: 817
    ugh, the last thing my game needs is more constrains
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Unless your moving the position to something else or to follow something, you wont need constraints. Just make a actor change the alpha to zero put the display text behavior in it and put it wherever you want and preview till its where you want it to be
  • POMPOM Member Posts: 2,599
    YES YOU CAN!
    Just type "/n"..
    Before the attribute you want to display.
    It makes a new line and then display your attribute
  • sebmacflysebmacfly Member Posts: 1,018
    p-o-m said:
    YES YOU CAN!
    Just type "/n"..
    Before the attribute you want to display.
    It makes a new line and then display your attribute

    Right but you can't control exactly the Y position... that will depend on your font size...
  • POMPOM Member Posts: 2,599
    Yes that is correct, but if you want to make it even lower just add another "/n".."/n".. And play with the font size until you are satisfied ;)
  • sebmacflysebmacfly Member Posts: 1,018
    Yup, but if you do have a font size to 20 (fixed) how to adjust the Y position? :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi sebmacfly: Unfortunately you can't adjust leading/line spacing within the Display Text Behaviour; as you insinuate, that's a fixed amount based on the font size you're using.

    If you've not that much text, and you have critical typographic requirements (including different fonts than those available in GS) you're best to stick with graphics of text in those cases. :-)
  • sebmacflysebmacfly Member Posts: 1,018
    gyroscope said:
    Hi sebmacfly: Unfortunately you can't adjust leading/line spacing within the Display Text Behaviour; as you insinuate, that's a fixed amount based on the font size you're using.

    If you've not that much text, and you have critical typographic requirements (including different fonts than those available in GS) you're best to stick with graphics of text in those cases. :-)

    Yeah i know :) that what i was trying to tell.... See up
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    sebmacfly said:
    Yeah i know :) that what i was trying to tell.... See up

    Ok, sorry! Thought you were asking the question not knowing the answer. :-)
  • UtopianGamesUtopianGames Member Posts: 5,692
    Can you do display text: Hello "/n" World because i can't seem to get this to work.

    Darren.
  • GamersRejoiceGamersRejoice Member Posts: 817
    p-o-m said:
    YES YOU CAN!
    Just type "/n"..
    Before the attribute you want to display.
    It makes a new line and then display your attribute

    I can't get this to work at all, am I doing something wrong?

    it looks like this: "/n"..self.actornumber
  • xarmianxarmian Member Posts: 124
    It's actually \n not /n. But, this only worked in the Gamesalad Preview. It does not display right when using GSViewer (it ends up all mashed up) and it does not work in a published (compiled) app. It looks like a bug, so I've been avoiding it.

    Also, I find that the left and right alignment of DisplayText do not do anything, it is always centered. Does anyone else see anything different?
Sign In or Register to comment.