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.

Pictures in windows

i no this question is probly allways asked but i did search and couldnt find the answer so how do i put pictures in windows also how would i make a picture the background for a cms
 
In the refresh mwthod of a window add:
Code:
self.contents.blt(x, y, RPG::Cache.picture("name of the picture"), Rect.new(0, 0, 640, 480))

Just change the x and y values and 640 to the width and 480 to the height of your picture.

For the menu, look at Scene_Menu and add right after
Code:
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
this
Code:
@bg_picture = Sprite.new
@bg_picture.bitmap = RPG::Cache.picture("name of the picture")
@bg_picture.z = 90
@command_window.opacity = 0
@playtime_window.opacity = 0
@steps_window.opacity = 0
@gold_window.opacity = 0
@status_window.opacity = 0

Now after
Code:
 @status_window.dispose

add
Code:
@bg_picture.dispose

That should be all, just ask when you have some more questions.
 

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