Customizing Text Displays with a "-"

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I want to make a cool little feature that when a player/enemy gets shot the amount of life lost will hover by the enemy/player for a second or two. Also, if the player uses a health pack the amount of life gained will hover by the player for a second or two...

How to do customize the Display Text behavior to display something like "-7" or "+12" etc.

I can figure out how to do game.attributes for the value of life lost/gained, I just don't know how to make the "-" or "+" show up WITH the game.attribute for the life gained/lost.

Thanks!

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    Hey Doc,

    think you do this:

    "+"..game.attribute (ie the fixed text is in the " " followed by ..

    here are some others:

    "$"..game.dollars.."."..game.cents

    game.Minutes..":"..game.Seconds

    EDIT: as a side note and perhaps someone can help .. I can't get a space to appear in that setup.
  • DrGlickertDrGlickert Member Posts: 1,135
    Sweet. Thanks simo!

    I'd like to know how to do a space. I don't need it, but it would be great to know how.
  • anithmukanithmuk Member Posts: 235
    to space you need to press option+space
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I would recommend making some image files with your point numbers it looks much nicer to have a nice custom font pop out as your points. Obviously sometimes its not really a feasible way to do somethings but it normally looks much nicer and gives the game a nice polished look
Sign In or Register to comment.