SpriteLibrary

# Sprite
MoveTo Method (List
Point
)

Tell the sprite to move towards each point in turn. The sprite will move in a straight line until the first point. From there it moves to the next point, until it has reached the last point. Every time it reaches a point, the SpriteArrivedAtWaypoint event is triggered. When it reaches the final point in the list, the SpriteArrivedAtEndPoint event is triggered. While the sprite is moving, the SpriteReachedEndPoint attribute is set to false. When it has arrived, it is set to true.

Namespace: SpriteLibrary
Assembly: SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.5 (1.0.0.5)
Syntax
C#
Copy

    public void MoveTo(
    	List<Point> DestinationList
    )

#### Parameters

DestinationList
  Type: System.Collections.Generic
  List
  Point
  A list of Image-Points that the sprite will follow, one after the other

See Also

#### Reference

Sprite Class
MoveTo Overload
SpriteLibrary Namespace