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.

Anyone know where the "update" methods for the default menu is callled from?

I am attempting to write my own menu system for RMXP. But before overwriting the built in system, I would like to create my men system independently. The thing is, I want to call the update for my menu the same to the update in scene_menu is called. Unfortunately, I do not know where this method is called from. Any help here would be appreciated.

Thanks.
 
In most Scenes, in the default RMXP code, the main method is the big deal. It initializes all the windows, then loops

Code:
# Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end

this over and over, until you change the scene. It updates the graphics, the input, and calls the scene's update method. This is 'def update' and typically where you would update windows/objects.
 

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