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.

Selecting map_id number

Status
Not open for further replies.

topman

Member

What syntax would I use to select a maps id number?

I am sorry for the brief question that may not help people understand what I need, but for some reason I can't think of a better way to word my question.
 
To change the current map, use this:
Code:
$game_map.setup(2)

I dont really sure about this, but I think it'll change the map data but the graphics will stay outdated... so add this before Main:
Code:
class Scene_Map
  def refresh_spriteset
    @spriteset.dispose
    @sprieset = Spriteset_Map.new
  end
end

Now, to change the map use this:
Code:
$game_map.setup(10)
$scene.refresh_spriteset
 
This topic has been resolved. If topman or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
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