Class: TmxObjectGroup

TmxObjectGroup

FM.TmxObjectGroup

new TmxObjectGroup()

Object representing a group of objects of the tile map.
Author:
  • Simon Chauvin
Source:

Members

height :int

The height of the objects of the group.
Type:
  • int
Source:

map :FM.TmxMap

The map that this group belongs to.
Type:
Source:

name :string

The name of the group.
Type:
  • string
Source:

objects :Array

The list of objects of the group.
Type:
  • Array
Source:

opacity :float

The level of opacity of the objects of the group.
Type:
  • float
Source:

properties :FM.TmxPropertySet

The properties of the group.
Type:
Source:

visible :boolean

Whether the objects of the group are visible or not.
Type:
  • boolean
Source:

width :int

The width of the objects of the group.
Type:
  • int
Source:

x :int

The x position of the objects of the group.
Type:
  • int
Source:

y :int

The y position of the objects of the group.
Type:
  • int
Source:

Methods

load(pObjectGroupNode, pParent)

Load the group of objects.
Parameters:
Name Type Description
pObjectGroupNode FM.TmxObjectGroup The node of the group the load.
pParent FM.TmxMap The tile map this group belongs to.
Source: