AddSprite()

Last Modified: 9/3/2021

Sets an Integer variable as a sprite handle.

Arguments

NameTypeRequiredDescription
Height Integer Yes How tall is the sprite (in tiles). Valid range is (1 - 4
Width Integer Yes How wide is the sprite (in tiles). Valid range is (1 - 4

Example

Syntax: AddSprite(<Height>, <Width>)
    a = AddSprite(1,1)

Remarks

If the Height or Width exceeds the valid range, undesirable effects may occur.

See Also

FreeAllSprites, FreeSprite, SpritePosX(), SpritePosY()