Click or drag to resize
SpriteBaseTileCategoryTouched Method
Determine if the sprite is touching a tile in the specified category (requires TouchTiles(TileCategoryName)).

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
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: Boolean
True if the sprite is touching a tile in the specified category, false otherwise.
See Also