DrawSpriteXY

Top  Previous  Next

Syntax

DrawSpriteXY(sprite as POINTER,x as INT,y as INT,OPT buffer as POINTER)

Description

.Renders a sprite into a buffer at the specified coordinates

Parameters

sprite - Sprite pointer returned by LoadSprite

x, y - Coordinate to render sprite

buffer - Optional. Can be one of BACKBUFFER (default), FRONTBUFFER or SPRITEBUFFER.

Return value

None

Remarks

Does not update the internally stored sprite position. Use when the same sprite is drawn more than once on a screen.

See Also: DRAWSPRITE, LOADSPRITE

Example usage

DrawSpriteXY goodguy, 100, 112