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.

transfering from main menu?

Status
Not open for further replies.

Giam

Member

I have the code to call a common event, which transfers you, from the main menu. The only problem is that it waits until you exit the menu to transfer. Is there anyway to make it close the menu right when you press it?
 

Giam

Member

This causes an error at Window_Base:

Code:
        # Play music        
        $game_system.se_play($data_system.decision_se)        
        # Switch to Map
        @menu_disabled = true
        # Call Common Event
        $game_temp.common_event_id = 15
        # Dispose of windows
        @command_window.dispose
        @playtime_window.dispose
        @steps_window.dispose
        @gold_window.dispose
        @status_window.dispose

EDIT:

I was able to do it with this:

Code:
$scene = Scene_Map.new

It exits to the map the menu was opened on, but right after switches to the new map.
 
Status
Not open for further replies.

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