Plugin : TMX Importer v2
Author:Rex.Rainbow
- Create sprites according to tmx exported file.
Download
Properties
X at (0,0)
- Physical X co-ordinate at logic (0,0).
Y at (0,0)
- Physical Y co-ordinate at logic (0,0).
Actions
0: Load
Action:Import tmx
- Import tmx string.
- Input ( string ) : Input string.
- Parser ( object ) : Parser object.
Duration mode
Action:Create tiles in a duration
- Retrieve tile array and creating tiles in a duration. It will trigger "Condition:On each tile cell".
- Tile ( object ) : Tile object.
- Processing time ( number ) : Processing time per tick in percentage. A tick time is (1/60), 1 is using full tick time.
Action:Retrieve tile array in a duration
- Retrieve tile array in a duration. It will trigger "Condition:On each tile cell"
- Processing time ( number ) : Processing time per tick in percentage. A tick time is (1/60), 1 is using full tick time.
One tick mode
Action:Create tiles
- Retrieve tile array and creating tiles. It will trigger "Condition:On each tile cell".
- Tile ( object ) : Tile object.
Action:Retrieve tile array
- Retrieve tile array. It will trigger "Condition:On each tile cell"
Release
Action:Release tmx object
Setup
Action:Set instance position of (0,0)
- Set instance position of (0,0).
- X ( number ) : X co-ordinate of instance at Logic(0,0).
- Y ( number ) : Y co-ordinate of instance at Logic(0,0).
Tilemap
Action:Reset tilemap
- Reset tilemap by tile array of a layer.
- Layer ( string ) : TMX layer.
- Tilemap ( object ) : Tilemap object.
Expressions
Duration
Expression:RetrievingPercent
- Get percent of retrieving process.
For Each
Expression:CurLayerPropName
- Get the name of current layer property in a For Each loop.
Expression:CurLayerPropValue
- Get the value of current layer property in a For Each loop.
Expression:CurTilesetPropName
- Get the name of current tileset property in a For Each loop.
Expression:CurTilesetPropValue
- Get the value of current tileset property in a For Each loop.
Expression:CurTilePropName
- Get the name of current tile property in a For Each loop.
Expression:CurTilePropValue
- Get the value of current tile property in a For Each loop.
Expression:CurMapPropName
- Get the name of current map property in a For Each loop.
Expression:CurMapPropValue
- Get the value of current map property in a For Each loop.
Expression:CurObjectPropName
- Get the name of current object property in a For Each loop.
Expression:CurObjectPropValue
- Get the value of current object property in a For Each loop.
Hex layout
Expression:IsUp2Down
- Return 1 if current hexagon map is up2down layout.
Expression:IsIndent
- Return 1 if current hexagon map is indent first line.
Map
Expression:MapWidth
- Get map width in tile number.
Expression:MapHeight
- Get map height in tile number.
Expression:TileWidth
Expression:TileHeight
- Get tile height in pixel.
Expression:TotalWidth
- Get total width in pixel.
Expression:TotalHeight
- Get total height in pixel.
Expression:IsIsometric
- Get orientation. 1=Isometric, 0=Orthogonal
Expression:MapProp
- Get map properties. Add second parameters to set default value.
- Name ( string ) : Property name.
Expression:BackgroundColor
Expression:POX
- Get position X of logic (0,0).
Expression:POY
- Get position Y of logic (0,0).
Object: Object
Expression:ObjectName
Expression:ObjectType
Expression:ObjectWidth
- Get area width of object.
Expression:ObjectHeight
- Get area height of object.
Expression:ObjectX
- Get position X of object.
Expression:ObjectY
- Get position Y of object.
Expression:ObjectProp
- Get object properties. Add second parameters to set default value.
- Name ( string ) : Property name.
Expression:ObjectID
Expression:ObjectRotation
- Get rotation of object, in degrees clockwise.
Expression:ObjectRefGID
- Get gid of a reference tile.
Object: Object group
Expression:ObjGroupName
Expression:ObjGroupWidth
- Get area width of object group.
Expression:ObjGroupHeight
- Get area height of object group.
Tile
Expression:TileID
Expression:LogicX
- Get logic X index of created instance.
Expression:LogicY
- Get logic Y index of created instance.
Expression:LayerProp
- Get layer properties of created instance. Add second parameters to set default value.
- Name ( string ) : Property name.
Expression:TileProp
- Get tile properties of created instance. Add second parameters to set default value.
- Name ( string ) : Property name.
Expression:PhysicalX
- Get physical X position (in pixel) of created instance.
Expression:PhysicalY
- Get logic Y position (in pixel) of created instance.
Expression:LayerName
- Get layer name of created instance.
Expression:LayerOpacity
- Get layer opacity of created instance.
Expression:IsMirrored
- Get mirrored of created instance.
Expression:IsFlipped
- Get flipped of created instance.
Expression:InstUID
- Get instance UID created by "Action:Create tiles".
Expression:Frame
- Get frame number, , add GID at 1st parameter to get frame number of that tile.
Expression:TileAngle
- Get angle of created instance.
Tileset
Expression:ImageSource
- Get image source of tileset.
Expression:ImageWidth
- Get image width of tileset.
Expression:ImageHeight
- Get image height of tileset.
Expression:TilesetProp
- Get tileset properties of created instance. Add second parameters to set default value.
- Name ( string ) : Property name.
Expression:TilesetName
- Get tileset name, add GID at 1st parameter to get tileset name of that tile.
Conditions
Callback: Create tiless
Condition:On each tile cell
- Triggered when retrieving each available tile cell.
Condition:On each object
- Triggered when retrieving each avaiable object on 'object layer'.
Duration
Condition:On retrieving finished
- Triggered when retrieving finished.
Condition:On retrieving duration
- Triggered during retrieving duration tick.
For each layer
Condition:For each layer
- Repeat the event for each layer.
For each property
Condition:For each layer property
- Repeat the event for each layer property.
Condition:For each tileset property
- Repeat the event for each tileset property.
Condition:For each tile property
- Repeat the event for each tile property.
Condition:For each map property
- Repeat the event for each map property.
Condition:For each object property
- Repeat the event for each object property.
Logic XY
Condition:For each tile at logic XY
- Repeat the event for each tile at logic XY.
- X ( number ) : Logic X.
- Y ( number ) : Logic Y.