SPRITE COMMAND SET

You are able to store over sixty thousand sprite objects at any one time. Sprites allow you to place images on the screen. The images can be animated and moved around the screen without disturbing the background bitmap, making them ideal for game sprites in traditional 2D games. You are also able to flip, mirror, scale and stretch your sprites for enhanced visual effect in your programs.

Click on any commands for more information:

SPRITE will set the coordinates and image of the specified sprite
SET SPRITE will set how the specified sprite treats its background area
SIZE SPRITE will resize the specified sprite according to the dimensions given
SCALE SPRITE will expand or shrink the specified sprite according to the scale value
STRETCH SPRITE will stretch the sprite using two scaling values
PASTE SPRITE will paste the sprite image to the specified coordinate on the screen
MIRROR SPRITE will flip the image of the sprite horizontally
FLIP SPRITE will flips the image of the sprite vertically
OFFSET SPRITE will apply an offset to the position of the specified sprite
HIDE SPRITE will hide the specified sprite
SHOW SPRITE will show the specified sprite
HIDE ALL SPRITES will hide all visible sprites
SHOW ALL SPRITES will show all invisible sprites
DELETE SPRITE will delete the sprite from the screen

LOAD IMAGE will load a bitmap into the specified image number
SAVE IMAGE will save the specified image number as a bitmap file
GET IMAGE will copy a selected area of the current bitmap for use as an image
PASTE IMAGE will paste the specified image onto the screen
DELETE IMAGE will delete the specified image from memory

The next commands will return a result:

SPRITE EXIST() will return a one if the specified sprite exists
SPRITE X() will return the current X position of the specified sprite
SPRITE Y() will return the current Y position of the specified sprite
SPRITE IMAGE() will return the image number current being used by the sprite
SPRITE WIDTH() will return the width of the specified sprite
SPRITE HEIGHT() will return the height of the specified sprite
SPRITE SCALE X() will return the percentage of horizontal scale the sprite is using
SPRITE SCALE Y() will return the percentage of vertical scale the sprite is using
SPRITE MIRRORED() will return a one if the specified sprite has been mirrored horizontally
SPRITE FLIPPED() will return a one if the specified sprite has been flipped vertically
SPRITE OFFSET X() will return the current amount of X shift applied to the sprite
SPRITE OFFSET Y() will return the current amount of Y shift applied to the sprite

SPRITE HIT() will detect whether another sprite has impacted against the sprite
SPRITE COLLISION() will detect whether another sprite is overlapping the sprite