Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[RESOLVED] Where have my damage numbers gone!? Help please!

Hey,

Just wondering if anyone could help me with this;

In my game, whenever you're in a battle the damage numbers do not appear over the enemies, or your character's heads.

I thought this was really weird and couldn't find a way of fixing it--but I did notice that the reason was because I changed the font using:

    self.contents.font.name = "Tahoma"
    self.contents.font.size = 18
(I used that in several different scripts.)

And yeah, I'm just a bit confused of why this is happening.
Any help would be greatly appreciated  :smile:

Korij Payne :shades:
 
Changing the font size and name in other scripts shouldn't change anything in the damage display.
The font settings for the damage are located in the RPG::Sprite class (you can find it in the help file).

So, first question: Are you using a custom battle system?
And second question: Are you using any scripts that could modify the Sprite class?
 
Hey,

As for your first question: no. I'm using the standard battle system.
And your second question; none of the scripts I'm using should be. I'm only using scripts that change the menu. (and I am also using the SDK)


EDIT:
Heyyy!!

Got it! I went into the RPG::Sprite, copied it into a new script and changed the font--now it's back again!
It was originally set as Arial Black size 32 I think...
Still wondering why it happened though.

Thanks a lot!

Please edit your post next time instead of double-posting ~Dargor
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top