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.

Script Options in Menu to go to SPECIFIC Maps...

Status
Not open for further replies.
Now, I know this definitely seems like a newb question to ask, but... here goes...


On my default MENU... the options that show up DO allow me to express $scene but only to map.new.

How do I get it to say... go to Map 10, and also call a common event while it does it?
 

poccil

Sponsor

The following commands will do the trick:

Code:
$scene=Scene_Map.new
$game_temp.player_new_map_id=10 # map ID to move to
$game_temp.player_new_x=0
$game_temp.player_new_y=0
$game_temp.player_new_direction=0 # corresponding to numpad keys
$game_temp.common_event_id=1 # common event ID to call
$scene.transfer_player

Also, edit lines 269-270 of the script section Scene_Map so that it reads:

Code:
     @spriteset.dispose if @spriteset
     @spriteset = Spriteset_Map.new if @spriteset
 
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