Sprite.Collision Event
Animation Studio Reference

Sprite.Collision Event

This event fires, when a collision between sprites occurs. Property DetectCollisions must be set to true, for the event to occur.

[Visual Basic]
Public Event Collision As SpriteCollisionHandler
[C#]
public event SpriteCollisionHandler Collision;

Event Data

The event handler receives an argument of type CollisionEventArgs containing data related to this event. The following CollisionEventArgs property provides information specific to this event.

PropertyDescription
Collider Gets the Sprite which a collided with this Sprite.

Remarks

You can add this event to the sprite, by double clicking the event in the Event Pane of the property tab in the designer.

See Also

Sprite Class | AnimationStudio Namespace