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.

Using a picture for combat window

Status
Not open for further replies.

lurk

Member

This might be a very newbie question, but how could I replace the battlestatus window (the one with the battlers) with a 160x640 picture(instead of the stretched windowskin)? I tried modifying the battlestatus script, but I'm really new at this and I find myself going in (increasingly frustrating) circles. Thanks in advance for any help!

Lurk
 
Use this (New Script above main)

Code:
class Window_BattleStatus
  alias_method :trick_picture_battlestatus_initialize, :initialize
  def initialize
    trick_picture_battlestatus_initialize
    self.opacity = 0
    self.back_opacity = 0
    @background = Sprite.new
    @background.bitmap = RPG::Cache.picture([I]file name goes here[/I])
  end
  alias_method :trick_picture_battlestatus_dispose, :dispose
  def dispose
    trick_picture_battlestatus_dispose
    @background.dispose
  end
  alias_method :trick_picture_battlestatus_update, :update
  def update
    trick_picture_battlestatus_update
    @background.update
  end
end

The background is to go in the Graphics/picture directory and replace
file name goes here with the file name enclosed in '' or "" for example if the file name is background then "background" will go there

untested but it should work let me know if that gives you any trouble
 

lurk

Member

It works really well if I make a 640x480 battle interface, where the bottom of the picture is my interface and the top is blank. Thanks a lot, very, very helpful, now I can keep my hair!

Lurk
 
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