The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: kmp2253 on February 02, 2008, 10:00:25 PM

Title: Character Graphic in main menu
Post by: kmp2253 on February 02, 2008, 10:00:25 PM
Is there any way of switching the character grahpic in the main menu to the battler graphic instead?
Title: Re: Character Graphic in main menu
Post by: Falcon on February 02, 2008, 10:04:09 PM
Wrong forum, this should be in script requests.

The battler graphic would not fit in the menu. It would be way too fucking big :P
Title: Re: Character Graphic in main menu
Post by: Dertt on February 03, 2008, 09:48:07 PM
Au contraire.


class Window_Base
  #--------------------------------------------------------------------------
  # * Draw Graphic
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------
  def draw_actor_graphic(actor, x, y)
    bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
    cw = bitmap.width
    ch = bitmap.height
    wr = (1.0 * bitmap.width) / (1.0 * bitmap.height)
    nw = (88 * wr)
    src_rect = Rect.new(0, 0, cw, ch)
    dst_rect = Rect.new(x-24, y-76, nw, 88)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
end


Credit I think goes to "Deke," but I seem to remember him not requiring any.