Use Display Text to Show Score with Set Number of Digits?

ellfireellfire Member Posts: 187
edited August 2012 in Working with GS (Mac)
Well, now that display text is going to retina compliant, does anyone know how to use display text to show a score with a fixed number of digits. I.e. The score reads 000,000,000 when the player starts the levels vs just a single 0. As they score it becomes something like 000,001,234 vs 1,234.

Hope that makes sense. If there's a way to do it, it will save me some resources overhead vs using the custom font that I am using now. Thanks.

Answers

  • HapiappsHapiapps Member Posts: 373
    edited August 2012
    Maybe have them there with alpha 0 and when the number is greater than 0, change alpha to 1. Not sure if thats what you're asking though.
  • ellfireellfire Member Posts: 187
    @Hapiapps - Thanks, but I actually want to display all the digits even if there value is zero, my experience has been that, if the number is a starting zero, it won't display. Maybe that helps?
  • BlazingApplicationsBlazingApplications Member Posts: 340
    Unlock each one and put a rule stating if its higher then x number then turn alpha to 1.

    If you still want to have a 0 when the score is 0 just don't put the rule in the "ones" actor and it will always be showing.

    -BA
  • ellfireellfire Member Posts: 187
    @BlazingApplications Sorry, I don't follow. I basically always want nine digits in the score even if they are all zeros. I am trying to get rid of some image files and logic, so the least amount of rules the better. If it isn't fairly simple to do, I guess I can keep my current setup.
  • ellfireellfire Member Posts: 187
    Thanks, @BlazingApplications, but I can't seem to get your demo to play in Safari, Firfox, or on my iPad. Not sure what's up. I did see a bit of a flash of something that may be what I'm looking for. Do you have a video of it or the template file available? Thanks for helping out.
Sign In or Register to comment.