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.

Having a problem with a menu system

Status
Not open for further replies.
The menu system I am having trouble with is Catchm's FFX-2 menu system script.

http://www.rmxp.org/forums/showthread.php?t=2778

Here's a picture of what my problem is:

http://i35.photobucket.com/albums/d172/melinaperez/menuproblem.png[/IMG]

As you can see, the faces of Sydyn and Melusine are sticking out of the boxes, while Cydret is not. I'm trying to figure out what could possibly be done to remedy this?

Thank you for your time. :)
 
At lines 169 - 176, replace

Code:
  #=====================================
  def draw_actor_face(actor, x, y)
  face = RPG::Cache.character("Faces/" + actor.character_name, actor.character_hue)
  fw = face.width
  fh = face.height
  src_rect = Rect.new(0, 0, fw, fh)
  self.contents.blt(x - fw / 23, y - fh, face, src_rect)
end

with

Code:
  #=====================================
  def draw_actor_face(actor, x, y)
  face = RPG::Cache.character("Faces/" + actor.character_name, actor.character_hue)
  fw = face.width
  [b]fh = 80[/b]
  [b]src_rect = Rect.new(0, face.height - fh, fw, face.height)[/b]
  self.contents.blt(x - fw / 23, y - fh, face, src_rect)
end

Alternatively, you can make your face pictures smaller. It seems like the script was desinged for 80x80 face pics.
 

Tana

Member

This topic has been resolved. If StrawberryBomb 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