class flixel.addons.editors.tiled.TiledObject

Available on all platforms

Last modified 10/3/2013 by Samuel Batista * (original by Matt Tuttle based on Thomas Jahn's. Haxe port by Adrien Fischer) * This content is released under the MIT License.

Class Fields

static var ELLIPSE:Int

static var FLIPPED_VERTICALLY_FLAG:Int

Use these to determine whether a sprite should be flipped, for example: * * var flipped:Bool = cast (oject.gid & TiledObject.FLIPPEDHORIZONTALLYFLAG); * sprite.facing = flipped ? FlxObject.LEFT : FlxObject.RIGHT;

static var POLYGON:Int

static var POLYLINE:Int

static var RECTANGLE:Int

static var TILE:Int

Instance Fields

var angle:Float

In degrees

var custom:TiledPropertySet

Custom properties that users can set on this object

var flippedHorizontally:Bool

Whether the object is flipped horizontally.

var flippedVertically:Bool

Whether the object is flipped vertically.

var gid:Int

Global identifier for this object

var group:TiledObjectGroup

Information on the group or "Layer" that contains this object

var objectType:Int

The type of the object (RECTANGLE, ELLIPSE, POLYGON, POLYLINE, TILE)

var points:Array<FlxPoint>

An array with points if the object is a POLYGON or POLYLINE

var shared:TiledPropertySet

Shared properties are tileset properties added on object tile

var x:Int

var y:Int

function new(Source:Fast, Parent:TiledObjectGroup):Void