SecondBASIC Documentation v3

Home / Function Reference / AddSprite()

AddSprite()

Description: Sets an integer variable as a sprite handle.

Syntax:

AddSprite(<height>,<width>)

Part Description
<height> Required. This is the sprites height in tiles. Valid values are 1, 2, 3, and 4.
<width> Required. This is the sprites width in tiles. Valid values are 1, 2, 3, and 4.

Example:

        a = AddSprite(1,1)

Note: If the <height> or <width> exceed the specified boundaries above, undesirable effects may happen.