Sprite

Positions a sprite ready to be drawn.

Syntax

Sprite spriteID,x,y,image

Description

This command positions a sprite ready to be drawn by the Draw Frame command.

spriteID is the number of the sprite to position.

x and y are co-ordinates in the canvas to move the sprite to.

image is the index in the image bank of the image to draw. The image bank that is used can be set using the Set Image Bank command.

Once a sprite has been positioned it will be drawn in that position, with that image, every time Draw Frame is called. It can be turned off using the Sprite Off command.

Note: a sprite will only be drawn if it's image bank is loaded and a valid image number is used.


Table of contents