SOLVED! Quick Question: Number Display problem

SpookyBurger

  • Posts: 82
Hi I'm having a small tiny problem with displaying the number of lives my player has.  It works fine until I get to 1 and below, at that point it stops drawing the number.  I know the value is still decreasing per hit since after the 2nd hit from 2 the player dies.

I have removed the yellow fill before and that didn't solve the problem.

I've added screenshots of the Health Display behaviour and the player going from 2, 1, and 0 lives (put up in that order.

« Last Edit: March 05, 2013, 06:19:05 pm by SpookyBurger »
Please try out my latest build of Patient 9 here.   http://www.stencyl.com/game/play/23179

dtrungle

  • Posts: 1938
Print that GA value to console and see what you get. If it prints the number correctly, then something is wrong with your font. Either the font can't 'draw' it because it just can't or it's disabled, check the font settings.

Another problem could be because something else is drawn on top of that number so it essentially hides it.

SpookyBurger

  • Posts: 82
Thanks!  I changed the font to a basic one and it worked fine, it appears my sweet typewritter font is missing 0 and 1.  How do I print a GA value to console?
Please try out my latest build of Patient 9 here.   http://www.stencyl.com/game/play/23179

dtrungle

  • Posts: 1938
Just insert the GA block into a print block.

Tuo

  • *
  • Posts: 2469
Make sure that you have your custom fonts allowed to grab any type of character. Too often the issue is that the settings for the font charset has been changed to not allow numbers (or not allow letters). To print an attribute (or anything), you can use the "print" code, which is in Flow -> Debug
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)