MoveSprite

Top  Previous  Next

Syntax

MoveSprite(sprite as POINTER,x as INT,y as INT)

Description

Updates the sprites position on the screen.

Parameters

sprite - Sprite pointer returned by the LoadSprite function

x, y - New position for the sprite

Return value

None

Remarks

The sprites position is used by the DRAWSPRITE command.

See Also: DRAWSPRITE, DRAWSPRITEXY, LOADSPRITE

Example usage

MOVESPRITE badguy, 100, 17
DRAWSPRITE badguy
FLIP