Use 2 different colored custom fonts for score?

I am currently using a custom font to display my high score, which is red. However I also want to display a final score which is supposed to be blue, but in the same font. Each image for the red numbers are labeled (1,2,3,4 ect), so how would I go about naming and making the blue numbers spawn in for the final score? Because I can't label them 1,2,3,4 ect because that's the names for the red numbers.. I hope that makes sense.

Comments

  • Spalding004Spalding004 Member, BASIC Posts: 89

    You could make your letter images white and then color the actors that are displaying them.

    Or, if you still wanted to use colored images name your blue images "b1, b2," etc and in your constrain:

    (example)

    Constrain self.image

    to

    "b".(yournumber)

    and this should work as well.

    If that doesn't work, try it without the quotes (not at my gamesalad computer so can't test to see which way is right).

    Definitely the easiest method (and best for saving space on graphics) is to color them white (or grayscale) and then color the actor itself.

  • Lae DevLae Dev Member Posts: 12

    @Spalding004 said:
    You could make your letter images white and then color the actors that are displaying them.

    Or, if you still wanted to use colored images name your blue images "b1, b2," etc and in your constrain:

    (example)

    Constrain self.image

    to

    "b".(yournumber)

    and this should work as well.

    If that doesn't work, try it without the quotes (not at my gamesalad computer so can't test to see which way is right).

    Definitely the easiest method (and best for saving space on graphics) is to color them white (or grayscale) and then color the actor itself.

    Okay so I think these are the rules for selecting which image to display the number as. Where would I add the "b" in front of? I got this custom font code from the market so I'm not too sure what changes what haha :blush:

  • Lae DevLae Dev Member Posts: 12

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I believe you would add it before the textSubStr function: "b"..textSubStr()

    Make sure to use two periods to concatenate strings.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Lae DevLae Dev Member Posts: 12

    I ended up going with his second option, which was to make the numbers white then color them depending on which score it was showing :smile: Thanks anyway @tatiang!

  • Spalding004Spalding004 Member, BASIC Posts: 89

    @tatiang said:
    I believe you would add it before the textSubStr function: "b"..textSubStr()

    Make sure to use two periods to concatenate strings

    Ah, thanks, I knew "." didn't look right.

Sign In or Register to comment.