SpriteBaseTileCategoryTouched Method |
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual bool TileCategoryTouched(
TileCategoryName Category,
ref int TouchingIndex,
bool InitialOnly
)
Parameters
- Category
- Type: (Default Namespace)TileCategoryName
Category of tiles to be tested - TouchingIndex
- Type: SystemInt32
Receives the index of the first qualifying tile
if the sprite is touching a tile in the specified category. This is an index
into the TouchedTiles array returned by TouchTiles(TileCategoryName). - InitialOnly
- Type: SystemBoolean
If true, a tile can only qualify if the sprite was not
already touching the tile in the previous frame.
Return Value
Type:
BooleanTrue if the sprite is touching a tile in the specified category, false otherwise.
See Also