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.

Face picture in window_battleStatus help

KAIRE

Member

I am able to add a hero face pictures in my window_battlestatus with the help of SephirothSpawn.

Code:
class Window_Base
  def draw_face(actor, x, y)
    bitmap = RPG::Cache.character("BattlerFaces/#{actor.character_name}", actor.character_hue)
    self.contents.blt(x, y, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))
  end
end

But what I need is the picture only shows when the actor are active for command. For example if it's actor 1 turn, his picture shows. If not it's just blank(no picture show). How can I do something like that?
 

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