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] Changing font/color during the battle phase?

Status
Not open for further replies.
Been browsing the forums most of the night, but havn't seen someone trying this exact same thing yet. I'm using the default battle system, and so I either need to change the color of the font displaing the character's stats... make the character's battler picture be slightly transparent, or somehow make the character's information more "readable" than what it is be default.

Wasn't sure if this dealt with scripting, so I erred on the side of safety and put it here instead :D
 
Personally, I would search for Yeyinde's Font Additions. You would be suprise how much adding an outline or shadow makes font easier to read and more appealing.

Otherwise, look in Window_BattleStatus, for this:
Code:
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_x = i * 160 + 4
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, actor_x, 32, 120)
      draw_actor_sp(actor, actor_x, 64, 120)
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end

Above this line : "draw_actor_name(actor, actor_x, 0)", you can add:
Code:
self.contents.font.color = Color.new(r, g, b)

Replace r, g, b with a number between 0 and 255. However, some of those methods that are called, use methods in Window_Base that might replace the color, so you would have to tell me exactly what colors and where.

Or just use Yeyinde's script. ;)
 
Yeyinde's script sounds like the best option. Honetly, I thought about trying to replace the stats with graphics (a white font with black outline) but then quickly realized how futile that would be when dealing with HP, etc...

A shadow/outline would be the perfection solution. Thanks!

EDIT: Found the script, that seems to help a lot. Dues to the facesets I'm using, I'm going to have to play around with moving things still... but the text problem is solved! Thanks for your help!
 
This topic has been resolved. If BasilAcid or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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