ScriptMap

Methods

  • Map.putTile(layer: number, x: number, y: number, tileID: number)
    • puts the tile at the x, y location in the designated layer
  • Map.getTile(layer: number, x: number, y: number)
    • gets the information for the tile at the x, y location in the designated layer
  • Map.putTileEffect(x: number, y: number, tileID: TileEffectType)
    • puts the Tile Effect at the designated x, y location
  • Map.putObject(x: number, y: number, dynamicResource: ScriptDynamicResource)
    • puts the Object at the designated x, y location
  • Map.playObjectAnimation(x: number, y: number, name: string, loop: number)
    • plays the object animation at the designated x, y location

Fields

  • Map.width
    • width of the entire map
  • Map.height
    • height of the entire map
Copy link