The game object class for a map. It contains scrolling and passage determination functions.
Methods
- Get the adjusted x valueName Type Description xnumber The x to adjust Returns:Type Description number The adjusted x value 
- Get the adjusted y valueName Type Description ynumber The y to adjust Returns:Type Description number The adjusted y value 
- airship()Game_Vehicle
- Get the airship vehicleReturns:Type Description Game_Vehicle The airship object 
- Get the tiles at the given coordinatesName Type Description xnumber The x coordinate ynumber The y coordinate Returns:Type Description Array The tiles at the coordinates 
- Autoplays map audio
- Get autorun common eventsReturns:Type Description Array Array of autorunning common events 
- Get the autotile type at the given coordinatesName Type Description xnumber The x coordinate ynumber The y coordinate znumber The z index of the tile Returns:Type Description number The autotile type 
- Get the battleback 1 image file nameReturns:Type Description string The battleback 1 name 
- Get the battleback 2 image file nameReturns:Type Description string The battleback 2 name 
- Get the boat vehicleReturns:Type Description Game_Vehicle The boat object 
- Get the bush depth- Since:
- Version 1.5.0
 
 Returns:Type Description number The bush depth 
- Get map x from canvas xName Type Description xnumber The x value to convert Returns:Type Description number The map x 
- Get map y from canvas yName Type Description ynumber The y value to convert Returns:Type Description number The map y 
- Changes the battleback imagesName Type Description battleback1Namestring The filename of the battle back 1 image battleback2Namestring The filename of the battle back 2 image 
- Changes the parallax imageName Type Description namestring The filename of the parallax image loopXboolean If the parallax loops horizontally loopYboolean If the parallax loops vertically sxnumber The horziontal scroll of the parallax synumber The vertical scroll of the parallax 
- Changes the tileset by idName Type Description tilesetIdnumber The new tileset id 
- Check the layered tile flagsName Type Description xnumber The x coordinate to check ynumber The y coordinate to check bitnumber The bit to perform bitwise AND operation on with the tile Returns:Type Description boolean True if a layered tile flag exists 
- Check the passage of the tile at the given coordinatesName Type Description xnumber The x coordinate to check ynumber The y coordinate to check bitnumber The bit to perform bitwise AND operation on with the tile Returns:Type Description boolean True if passage allowed 
- Creates the vehicles
- Get the map dataReturns:Type Description Array The map data 
- Get the delta between two x valuesName Type Description x1number The first x value x2number The second x value Returns:Type Description number The delta between the x values 
- Get the delta between two y valuesName Type Description y1number The first y value y2number The second y value Returns:Type Description number The delta between the y values 
- Disables name display
- Get the map display nameReturns:Type Description string The display name 
- Get the display xReturns:Type Description number The display x 
- Get the display yReturns:Type Description number The display y 
- Get the distance between two sets of x/y coordinatesName Type Description x1number The first x value y1number The first y value x2number The second x value y2number The second y value Returns:Type Description number The distance 
- Perform the scrollName Type Description directionnumber The direction to scroll distancenumber The distance to scroll 
- Enables name display
- Get the map encounter listReturns:Type Description Array The encounter list 
- Get the map encounter stepReturns:Type Description number The encounter step 
- Erase an event by idName Type Description eventIdnumber The id of the event to erase 
- event(eventId)Game_Event
- Get an event by idName Type Description eventIdnumber The id of the event to get Returns:Type Description Game_Event The event object 
- Get the event id at the given coordinatesName Type Description xnumber The x coordinate to check for events ynumber The y coordinate to check for events Returns:Type Description number The event id 
- events()Array.<Game_Event>
- Get the eventsReturns:Type Description Array.<Game_Event> The array of map events 
- eventsXy(x, y)Array.<Game_Event>
- Get events at the given coordinatesName Type Description xnumber The x coordinate to check for events ynumber The y coordinate to check for events Returns:Type Description Array.<Game_Event> The events at the given coordinates 
- eventsXyNt(x, y)Array.<Game_Event>
- Get no-through events at the given coordinatesName Type Description xnumber The x coordinate to check for events ynumber The y coordinate to check for events Returns:Type Description Array.<Game_Event> The NT events at the given coordinates 
- Get the map heightReturns:Type Description number The height 
- Initialize the map class
- Check if the airship can land at the given coordinatesName Type Description xnumber The x coordinate ynumber The y coordinate Returns:Type Description boolean True if landing is ok 
- Check if any events are startingReturns:Type Description boolean True if any event is starting 
- Check if the map is passable for the boatName Type Description xnumber The x coordinate ynumber The y coordinate Returns:Type Description boolean True if passable 
- Check if the tile is a bushName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description boolean True if the tile is a bush 
- Check if the tile is a counterName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description boolean True if the tile is a counter 
- Check if the tile is a damage floorName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description boolean True if the tile is a damage floor 
- Check if dashing is disabledReturns:Type Description boolean True if dashing disabled 
- Check if events are runningReturns:Type Description boolean True if event is running 
- Check if the tile is a ladderName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description boolean True if the tile is a ladder 
- Check if the map loops horizontallyReturns:Type Description boolean True if the map loops horizontally 
- Check if the map loops verticallyReturns:Type Description boolean True if the map loops vertically 
- Check if the map has an enabled display nameReturns:Type Description boolean True if name display is enabled 
- Check if the map is an overworld typeReturns:Type Description boolean True if overworld type 
- Check if the map is passableName Type Description xnumber The x coordinate ynumber The y coordinate dnumber The direction to check Returns:Type Description boolean True if passable 
- Check if the map is scrollingReturns:Type Description boolean True if scrolling 
- Check if the map is passable for the shipName Type Description xnumber The x coordinate ynumber The y coordinate Returns:Type Description boolean True if passable 
- Check if the x/y coordinates given are validName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description boolean True if the coordinates are within the map bounds 
- Get the layered tiles at the given coordinatesName Type Description xnumber The x coordinate ynumber The y coordinate Returns:Type Description Array The tiles at the coordinates 
- Get the map idReturns:Type Description number The map id 
- Get the parallax image file nameReturns:Type Description string The parallax name 
- Get the parallax origin xReturns:Type Description number The parallax origin x 
- Get the parallax origin yReturns:Type Description number The parallax origin y 
- Get parallel common eventsReturns:Type Description Array Array of parallel common events 
- Refreshes the vehicles
- Refresh the map
- Refresh the map only if needed
- Refresh tile events
- Get the region id of a tileName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description number The region id of the tile 
- Request a map refresh
- Get the rounded x valueName Type Description xnumber The x to round Returns:Type Description number The rounded x value 
- Get the rounded x value with directionName Type Description xnumber The original x value dnumber The direction Returns:Type Description number The x value after direction accounted for 
- Get the rounded y valueName Type Description ynumber The y to round Returns:Type Description number The rounded y value 
- Get the rounded y value with directionName Type Description ynumber The original y value dnumber The direction Returns:Type Description number The y value after direction accounted for 
- Get the screen tile xReturns:Type Description number The screen tile x 
- Get the screen tile yReturns:Type Description number The screen tile y 
- Get the distance to scrollReturns:Type Description number The distance to scroll 
- Scrolls the map downName Type Description distancenumber The distance to scroll 
- Scrolls the map leftName Type Description distancenumber The distance to scroll 
- Scrolls the map rightName Type Description distancenumber The distance to scroll 
- Scrolls the map upName Type Description distancenumber The distance to scroll 
- Set up the display positionName Type Description xnumber The x coordinate ynumber The y coordinate 
- Sets up the map for the given map idName Type Description mapIdnumber The map id to setup Throws:Error if map data object is not available
- Sets up an autorun common eventReturns:Type Description boolean True if event set up 
- Set up the map battlebacks
- Set up events on the map
- Set up the map parallax
- Set up the map scroll
- Sets up a starting eventReturns:Type Description boolean True if event set up 
- Sets up a starting map eventReturns:Type Description boolean True if event set up 
- Sets up a test eventReturns:Type Description boolean True if event set up 
- Get the ship vehicleReturns:Type Description Game_Vehicle The ship object 
- Start a map scrollName Type Description directionnumber The direction of the scroll distancenumber The distance of the scroll speednumber The speed of the scroll 
- Get the terrain tag of a tileName Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:Type Description number The terrain tag of the tile 
- tileEventsXy(x, y)Array.<Game_Event>
- Get tile events at the given coordinatesName Type Description xnumber The x coordinate to check for events ynumber The y coordinate to check for events Returns:Type Description Array.<Game_Event> The tile events at the given coordinates 
- Get the height of a map tile in pixelsReturns:Type Description number The height of one tile 
- Get the tile id by coordinateName Type Description xnumber The x coordinate to check ynumber The y coordinate to check znumber The z index of the tile Returns:Type Description number The tile id 
- Get the width of a map tile in pixelsReturns:Type Description number The width of one tile 
- Get the tileset objectReturns:Type Description Object The tileset object 
- Get the tileset flagsReturns:Type Description Array The tileset's flags 
- Get the tileset idReturns:Type Description number The tileset id 
- Unlock an event by idName Type Description eventIdnumber The id of the event to unlock 
- Update the mapName Type Description sceneActiveboolean If the scene is active 
- Update events
- Update the interpreter
- Update the parallax
- Update the map scroll
- Update vehicles
- vehicle(type)Game_Vehicle | null
- Get a vehicle by typeName Type Description typestring|number Either string or number type of the vehicle (0/1/2 or boat/ship/airship) Returns:Type Description Game_Vehicle|null The game vehicle object, or null if invalid type 
- vehicles()Array.<Game_Vehicle>
- Get the vehicle arrayReturns:Type Description Array.<Game_Vehicle> Array of game vehicles 
- Get the map widthReturns:Type Description number The width 
- Get the x value with directionName Type Description xnumber The original x value dnumber The direction Returns:Type Description number The x value after direction accounted for 
- Get the y value with directionName Type Description ynumber The original y value dnumber The direction Returns:Type Description number The y value after direction accounted for