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.

Damage count doesn't show[RESOLVED]

Hey guys,
Um I have a problem, when I start a battle, it doesn't show me how much damage did I give or get.

Note that I didn't have this problem before, and it happens in all of the games.
Running RMXP on Windows XP.

Thanks!
 
No idea why you said "when I start a battle", as you'Re not supposed to have anything shown upon battle start, however if you don't get any damage numbers in general without modifying your project, that sounds like a font problem. RMXP uses MS Gothic by default, I think, so you might wanna check for that. In general, any font operating you did in the recent past might have something to do with it.
 
Damage is displayed in Sprite_Battler (line 110)
The damage method is defined in RPG::Sprite (in the help doc)
Notice the line: bitmap.font.name = "Arial Black"

Damage is determined in Game_Battler 3

P.S. The default font for everything else is "Arial" (even though the doc says "The default is "MS PGothic".")
 
Um, it might be something i'm doing wrong, but I checked line 110 in Sprite_Battler and what is written there is: damage(@battler.damage, @battler.critical)

and I can't seem to find bitmap.font.name = "Arial Black" anywhere in this script or in Game_Battler 3. Sorry for the noob questions, I have no idea about the scripts in RM.
 
The line bitmap.font.name = "Arial Black" is not in the scripts. It's buried in the damage method (that gets called from Sprite_Battler).
If you want to see it, you have to look in the help doc under RPG::Sprite
If you want to change it, copy the script from the help doc into a new script above main, and edit that line.

the value of damage gets set in Game_Battler 3. (in a bunch of places, depending on how the damage occurs & the results of the random calls).

As Blue mentioned, usually when text doesn't show up in a game, it's because the font hasn't been installed on your computer.
Although I have a hard time believing that "Arial Black" is missing from your PC. Unless you specifically removed it.
Can you use the "Arial Black" font in MS Word (or any other text editor)?
 

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