Question With Custom Score Font

Games4lifeGames4life Member, PRO Posts: 279
edited November 2015 in Working with GS (Mac)

Hi GS Community,

For some reason I keep having a problem with my custom score font.

2 errors.

  1. Only the zeros show white even though I have the image

AND *** All of the numbers increase by one when I only want the ones place to increase. If and only If the score exceeds the ones place to add 1 to the tens and so on.

Here is the coding I have, please let me know if you find any errors.

Thanks,
~G4L

Comments

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94
    edited November 2015

    Did you change the div to 10 for the first font on the right, code be like this
    floor(game.score%self.div)/(self.div/10)
    and make sure for every next font after starting from the right font to left you do like this change div to
    10
    100
    1000
    10000
    100000

    its depend on how many fonts you want to add good luck :)

  • Games4lifeGames4life Member, PRO Posts: 279

    @nadir.alkarbi said:
    Did you change the div to 10 for the first font on the right, code be like this
    floor(game.score%self.div)/(self.div/10)
    and make sure for every next font after starting from the right font to left you do like this change div to
    10
    100
    1000
    10000
    100000

    its depend on how many fonts you want to add good luck :)

    Thanks!

Sign In or Register to comment.