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.

image background

Greetings,

I know it's possible but I forgot how^^" xD

I want to make a window but instead of a window skin as background, a image...

but still having the map as background.. xD

please help me... :-3

grtrz,
StYn0!
 
Depends on how you want to go about it...

1) Set the opacity to 0, ans set the contents to your desired bitmap
Code:
 

class Window_Whatever < Window_Base

  def initialize

    super(x, y, width, height)

    self.opacity = 0

    self.contents = RPG::Cache.folder('name').dup

    

  # ...

2) Create a sprite in the initialize method
class Window_Whatever < Window_Base
def initialize
super(x, y, width, height)
self.opacity = 0
@sprite = Sprite.new(Viewport.new(x, y, width, height))
@sprite.bitmap = RPG::Cache.folder('name')

# ...[/code]
 

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