GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[solved] Custom font scoring weird issue + how to center

evertevert Posts: 264Member, PRO
edited May 10 in Working with GS (Mac)

Hey,

I used a template tutorial from gshero to add custom fonts in scoring.

()

It adds an extra number when i reach 10, perfect. But when the score reaches a 100, it overlaps it with the previous number.

See screenshot:

.

Also related to this topic: how can i make them centered. So my starting digit is in the center. When it adds another digit they should both be in the center. But that does not really happen. See added screenshot.
on the left you see what happens. On the right you see what it should be.

Thanks in advance!
Regards
Evert

Comments

  • AlkaPPAlkaPP Posts: 194Member, PRO

    I usually just downloaded the font from a website and drag it into GS and use Display Text behavior. Much easier

    My Gamesalad Games On App Store:

    Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1

  • bob loblawbob loblaw Posts: 349Member, PRO

    in everyone of those numbers that may be displayed, you need to set conditional logic for each to say if score >= 10, change position x to whatever position they need to move to. if score >= 100, etc

    if you’re just using the display text behaviour, you then would just do the above for the display actor.

    hope that makes sense. tough to type it coherently on my phone.

  • AlkaPPAlkaPP Posts: 194Member, PRO

    Correct me if I’m wrong. Doing custom fonts using image was because the custom fonts for display text feature wasn’t available that time.

    I hate doing custom fonts using png because it’s too much work for a simple thing where you can just drag a font to GS and use display text to display it.

    My Gamesalad Games On App Store:

    Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1

  • bob loblawbob loblaw Posts: 349Member, PRO

    i think you’re right, but using png allows you to be more creative with the display.

  • tatiangtatiang Posts: 11,815Member, Sous Chef, PRO, Senior Sous-Chef
    edited May 10

    @AlkaPP said:
    Correct me if I’m wrong. Doing custom fonts using image was because the custom fonts for display text feature wasn’t available that time.

    Yes, this.

    But if you want help troubleshooting, post a screenshot of your rules. There are hundreds of GameSalad templates and it's unlikely many people will know how a particular one was coded.

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

  • evertevert Posts: 264Member, PRO

    Hey everyone, Thx for your comments, I did not know i was able to just drag a font in. It has been a while that i used GS ;)

Sign In or Register to comment.