SpriteBaseIsOnTile Method |
Determines if a tile at the sprite's current position is a member of the specified category.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual bool IsOnTile(
TileCategoryName Category,
RelativePosition RelativePosition
)
Parameters
- Category
- Type: (Default Namespace)TileCategoryName
Tile category against which the tile will be checked. - RelativePosition
- Type: (Default Namespace)RelativePosition
The sprite may be on multiple tiles at once. This parameter
indicates which part of the sprite to look at, and gets the tile from the layer at
the specified position.
Return Value
Type:
BooleanTrue if the specified point in the sprite is on a tile in the specified category, false otherwise.
See Also