DarkBASIC Professional Help File

DX11 SET SPRITE FRAME

Sets the current frame of the given sprite.
Note that DX11 SET SPRITE SHEET SPLIT must have been called before calling this function, or the only valid frame will
be 0, which refers to the entire source image.
If the specified frame is out of the range defined by the sprite sheet's horizontal and vertical split factors, the sprite's current frame
will be set to the last frame available.

Syntax

    DX11 SET SPRITE FRAME sprite, frame

Parameters

    sprite

> Dword
> The sprite to set the frame of.

    frame

> Dword
> The frame to set the given sprite to display. The first frame has a value of zero, and the last frame a value of (splitAcrosssplitDown) - 1.

Returns

This function does not return a value.

See also

SPRITE Functions Menu
DX11 Function Categories