Custom Font

Hey guys, I have a problem with something.
I've looked into some videos to how add custom fonts to display score, but I couldn't apply my game score rules to those "images" that are displayed as numbers. Is there any way that I can add fonts to be displayed as text behavior? Or any way to make them work lol
Thank you ;)

Best Answer

  • tatiangtatiang Posts: 11,949
    edited February 2015 Accepted Answer

    What values of self.div are you using for each digit? I believe you would need 10, 100, 1000, 10000, and 100000.

    There is a difference in parentheses between what I posted...
    floor((game.Score%self.div)/(self.div/10))

    ...and what you posted:
    floor(game.Score%self.div)/(self.div/10)

    You have to take the floor of the entire expression, not just the first calculation.

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

Answers

Sign In or Register to comment.