how to use and display life bar as percentage (like smash bros)

QbAnYtOQbAnYtO Member Posts: 523
edited November -1 in Working with GS (Mac)
i'm trying to create a percentage life bar.. stricly numbers.

i'm sure i have to create an attribute and display said attribute. not sure how to do it tho.

Comments

  • cbtcbt Member Posts: 644
  • QbAnYtOQbAnYtO Member Posts: 523
    i know about that one i need a percentage one :p
  • cbtcbt Member Posts: 644
    Well, you set the health to 100. And put a "%" sign at the beginning?
  • QbAnYtOQbAnYtO Member Posts: 523
    Yea I did "display text" and used that integer attribute as the source. Still can get the percentage symbol in there but I found a fix :p
  • cbtcbt Member Posts: 644
    :D Because the engine gets "%" sign as modular. But glad you found the solution..
  • QbAnYtOQbAnYtO Member Posts: 523
    Yea when I typed the % symbol it said invalid expression lol
  • msonesmsones Inactive, Chef Emeritus Posts: 75
    Just so everyone else can find the solution here - one way to do it is put the % in quotations.

    It'll look kinda like this: "%"..(lifeattribute)

    Any text you put in quotes in a formula creator should come out as text, not as part of the formula.

    Also, as a reminder - if you need spaces in your text in a formula, use alt-space to put them in.

    Hope that helps!
Sign In or Register to comment.