DarkBASIC Professional Help File

DX11 STOP SPRITE

Stops the specified sprite from animating.
A frame to switch the display of the sprite to can optionally be set.
Calling this function for a sprite that isn't currently playing an animation, or one that isn't animated at all, will
still set the given frame if specified.

Syntax

    DX11 STOP SPRITE sprite, [frame]

Parameters

    sprite

> Dword
> The sprite to stop the animation of.

    [Optional] frame

> Dword
> A frame to switch to after stopping the sprite's animation. If omitted the sprite will stop at the frame it is currently on.

Returns

This function does not return a value.

See also

SPRITE Functions Menu
DX11 Function Categories