Click or drag to resize
PlanBaseDeactivateCategorySprite Method
Deactivate a sprite within a category given the sprite's index within the category.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void DeactivateCategorySprite(
	SpriteCollection Category,
	int Index
)

Parameters

Category
Type: (Default Namespace)SpriteCollection
Category containing the sprite to deactivate
Index
Type: SystemInt32
Zero-based index within the category of the sprite to be deactivated
Remarks
This can be used in conjunction with the result of a function like TestCollisionRect(SpriteBase, SpriteCollection) or TestCollisionMask(SpriteBase, SpriteCollection) to deactivate the target sprite when a collision occurs.
See Also