Home
Free Midlets
Help

SPRITEGEL

Syntax: SPRITEGEL spriteName, gelName

SPRITEGEL associated a named sprite with a named Graphics Element (GEL). If the sprite doesn't exist then a new sprite is created. Sprite animation can be achieved by associating the Sprite with a different GEL. The sprite can be moved around the screen using SPRITEMOVE. Collisions between sprites can be detected using the SPRITEHIT function.

Example

SPRITEGEL "ShipSprite","ShipGel"