Get Tile Data Transform


Description

With this action you can find out if the tiledata for a tile has been transformed in one of three ways: flipped, mirrored or rotated. The tiledata is simply a value that reflects the index of the tile along with the transforms applied, and you will normally want to get the tiledata first using either Get Tile Data In Cell or Get Tile Data At Pixel before using this action. The action will return true if the chosen transform has been applied to the tiledata, or false otherwise, and the returned value will then be stored in the target variable which can have been created previously or can be a new temporary one (if you check the "Temp" check-box). For more information on tiledata, please see the GML section on Tilemaps - Tile Functions.


Action Syntax:

Get Tile Data Transform Syntax


Arguments:

Argument Description
Tile The tiledata for the tile to get the transform from
Transform The the transform to check


Example:

Set Tile Data Transform Example
The above action block code gets the tiledata at the mouse position and then checks to see if the tile has had a rotation transform applied to it. If it has then the transform is reset and the tiledata sets the tile at the position again.