custom number fonts

rab127rab127 Member, PRO Posts: 47

Hi

I need a second custom font to display numbers.

For the first one I used a constrain attribute with; self.image to game.points%10, and floor(game.points/10)%10.

The files are 0.png ... to 9.png

How do I set up the second font that has a filename prefix?

The files are y.0.png to y.9.png.

I've tried "y"..game.points%10..".png" and it doesn't work.

Any suggestions?

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @rab127 said:
    I've tried "y"..game.points%10..".png" and it doesn't work.

    You are missing the '.' at the end of the 'Y'.

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

    Yep, you need "y."..game.points%10

    The ..".png" at the end is optional.

  • rab127rab127 Member, PRO Posts: 47

    Thanks guys! That's what I was missing.

Sign In or Register to comment.