CollisionDestination Event
Previous Top Next

CollisionDestination event occurs when a sprite intersects the point specified by its' DestinationX and DestinationY properties and its' HasDestination property is set True. The test is the same as the Sprite.IntersectsPoint test.
Sprite1 property holds the sprite.

Example:
Sub gw_CollisionDestination 'This event occurs when a Sprite reaches its' destination
      sprite.Value = gw.Sprite1 'Get the sprite.
      sprite.HasDestination = false ' We don't want more events
      ...
End Sub