<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="function.xsl" ?>
<function-list>
  <function>
    <name>SpriteSetDirection Method</name>
    <description>Moves a sprite in a given direction at a given speed.</description>
    <syntax>Game1.SpriteSetDirection lSpriteNum, iAngle, iVelocity</syntax>
    <param-list>
      <param>
        <name>lSpriteNum</name>
	    <description>Long. The unique sprite ID used in call to SpriteDefine or SpriteCopy. </description>
      </param>
      <param>
        <name>iAngle</name>
	    <description>Integer. The current angle of the sprite, from 0 to 359. 0 degrees points to 3 o'clock (directly right), with angles increasing clockwise.</description>
      </param>
      <param>
        <name>iVelocity</name>
	    <description>Integer. The current velocity of the sprite. The velocity value is the number of pixels the sprite will be moved each TimerFired event.</description>
      </param>
    </param-list>
	<remarks>To determine the angle to move a sprite towards another location, use the UtilGetAngleBetween method.</remarks>
	<example>
' Move a sprite "south"
Game1.SpriteSetDirection SPRITE_SOLDIER, 90, 2
...
' Stop a sprite
Game1.SpriteSetDirection SPRITE_SOLDIER, 0, 0
	</example>
  </function>
</function-list>
