Functions for retrieving information about tiles. More...
Public Member Functions | |
| void | SetSpriteInfo (integer tileID, integer spriteIndex, integer animationIndex, integer frameIndex) |
| Sets the sprite, animation, and frame to use for specified tile. | |
| boolean | IsEmptySpace (integer tileID, integer collisionPlane) |
| Checks to see if a tile at the ID is empty. | |
| integer | GetEmptyTile () |
| Gets the scene's empty tile ID. | |
| integer | GetCollision (integer tileID, integer collisionField, SensorDirection directionType, integer position, boolean flipX, boolean flipY) |
| Gets the collision value at the pixel position of the desired tile, -1 if no collision. | |
| integer | GetAngle (integer tileID, integer collisionField, SensorDirection directionType, boolean flipX, boolean flipY) |
| Gets the angle value of the desired tile. | |
| integer | GetBehaviorFlag (integer tileID, integer collisionPlane) |
| Gets the behavior value of the desired tile. | |
| boolean | IsCeiling (integer tileID, integer collisionPlane) |
| Checks if the desired tile is a ceiling tile. | |
Functions for retrieving information about tiles.
| integer TileInfo.GetAngle | ( | integer | tileID, |
| integer | collisionField, | ||
| SensorDirection | directionType, | ||
| boolean | flipX, | ||
| boolean | flipY ) |
Gets the angle value of the desired tile.
| tileID | ID of the tile to get the value of. |
| collisionField | The collision plane of the tile to get the angle from. |
| directionType | Ordinal direction to check in. |
| flipX | Whether to check the angle with the tile horizontally flipped. |
| flipY | Whether to check the angle with the tile vertically flipped. |
| integer TileInfo.GetBehaviorFlag | ( | integer | tileID, |
| integer | collisionPlane ) |
Gets the behavior value of the desired tile.
| tileID | ID of the tile to get the value of. |
| collisionPlane | The collision plane of the tile to get the behavior from. |
| integer TileInfo.GetCollision | ( | integer | tileID, |
| integer | collisionField, | ||
| SensorDirection | directionType, | ||
| integer | position, | ||
| boolean | flipX, | ||
| boolean | flipY ) |
Gets the collision value at the pixel position of the desired tile, -1 if no collision.
| tileID | ID of the tile to get the value of. |
| collisionField | The collision plane of the tile to get the collision from. |
| directionType | Ordinal direction to check in. |
| position | Position on the tile to check, X position if the directionType is Up/Down, Y position if the directionType is Left/Right. |
| flipX | Whether to check the collision with the tile horizontally flipped. |
| flipY | Whether to check the collision with the tile vertically flipped. |
| integer TileInfo.GetEmptyTile | ( | ) |
Gets the scene's empty tile ID.
| boolean TileInfo.IsCeiling | ( | integer | tileID, |
| integer | collisionPlane ) |
Checks if the desired tile is a ceiling tile.
| tileID | ID of the tile to check. |
| collisionPlane | The collision plane of the tile to check. |
| boolean TileInfo.IsEmptySpace | ( | integer | tileID, |
| integer | collisionPlane ) |
Checks to see if a tile at the ID is empty.
| tileID | ID of tile to check. |
| collisionPlane | The collision plane of the tile to check for. |
| void TileInfo.SetSpriteInfo | ( | integer | tileID, |
| integer | spriteIndex, | ||
| integer | animationIndex, | ||
| integer | frameIndex ) |
Sets the sprite, animation, and frame to use for specified tile.
| tileID | ID of tile to check. |
| spriteIndex | Sprite index. (-1 for default tile sprite) |
| animationIndex | Animation index. |
| frameIndex | Frame index. (-1 for default tile frame) |