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.

Showing a picture when opening menu

I reduced the size of the right menu status screen which made a blank screen. I intend to show a picture there whenever the menu is opened. Of course, I tried this myself,

Game_Screen.pictures[1].show = "picture" (added to the beginning of Main Processing at Scene_Menu) but because I'm a noob at scripting and don't have any idea what I'm doing, I get a NoMethodError, undefined method for "pictures". Could someone show me on the right track?
 
try this

Code:
@sprite.bitmap = RPG::Cache.picture('Picture')

where sprite is any name

and Picture is the name of the filename (no extension)

if it doesnt work, tell me and ill have another look for you :thumb:
 

Atoa

Member

on the start of "def main"
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.picture('Picture')
@sprite.x = 0 #set coord x of the picture
@sprite.y = 0 #set coord y of the picture


on the end of "def main"
@sprite.dispose
 

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