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.

Bitmap won't appear?

I am making something in RMXP, and it requires a lot of bitmaps.

I need to be able to modify a bitmap in a class (@bitmap variable),
and then block transfer it to the bitmap of a window(self.contents).

The code I tried was:

[rgss] 
class Thing
  def update
    @bitmap.clear
    if @toggled
      bmp = RPG::Cache.picture("file")
    else
      bmp = RPG::Cache.picture("")
    end
    @bitmap.blt(@x,@y,bmp,@rect)
    @bitmap.draw_text(@rect,"pie")
  end
end
 
class Window_Things < Window_Base
  def refresh
    self.contents.clear
    self.contents.blt(0,0,@thing.bitmap,@thing.rect)
  end
  def update
    refresh
    super
  end
end
 
[/rgss]

*All Variables are initialized.*

I put in the draw_text to see if it was doing the block transfer on the window's end, and it is, but the block transfer on the Thing's end isn't working.

Any help?
 

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