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.

Trying to get face graphic to appear in scene_battle.

Bogurd

Member

Hi All,
I am trying to get face graphics to appear in my battle scene. I know that first I must associate each character directly with a picture filepath, and then write a window that derives directly from window_base that displays the picture associated with character ID x. Then I display it in the scene battle. My knowledge of this is purely theoretical, could someone tell me how to implement these changes into the RGSS?
 

Juan

Member

@Bogurd here is a start for face sets. Read the comments to use them.
Code:
# Face Sets
#To use the facesets feature you need to make a folder called 
#Faces in the picture folder and then name the faceset picture the same name 
#its sprite is with _face in it.

# Begin Window Base Edit
class Window_Base < Window
#----------------------------------------------------------------------------
# * Draw Actor Face
# This makes the faces
#-----------------------------------------------------------------------------
  def draw_actor_face(actor, x, y)
#To use the facesets feature you need to make a folder called 
#Faces in the picture folder and then name the faceset picture the same name 
#its sprite is with _face in it. 
    bitmap = RPG::Cache.picture("Faces/" + actor.character_name + "_face")
    self.contents.blt(x, y, bitmap, Rect.new(0,0,96,96))
  end
end
 

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