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.

How do I increase the room for the HP word?

Okay, so the topic title doesnt explain my question very well.
In one of my games, I substituted the word for HP with another, longer, word. For the sake of example, we'll say I used the word "Health Status". Now, in the battle screen, the full word doesnt show; in example,
(Actor Name)
Health Sta        1000/1000
SP                  1000/1000
Its kind of hard to show without an image...but basically, does anyone know what part of the script I would edit to extend the area for the name of HP so it shows the full thing?
(Actor Name)
Health Status    1000/1000
SP                  1000/1000
 

poccil

Sponsor

The default scripts allow only 32 pixels for the HP text.  Replace line 220 of Window_Base (the one starting with "self.contents.draw_text"):

Code:
    wordWidth=self.contents.text_size($data_system.words.hp).width
    self.contents.draw_text(x, y, wordWidth, 32, $data_system.words.hp)

For SP, also replace line 250 of Window_Base (the one starting with "self.contents.draw_text"):

Code:
    wordWidth=self.contents.text_size($data_system.words.sp).width
    self.contents.draw_text(x, y, wordWidth, 32, $data_system.words.sp)
 

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