Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
83 lines (71 loc) · 2.45 KB

SPUSED.org

File metadata and controls

83 lines (71 loc) · 2.45 KB

Top | Up (Sprite) | < Previous (PAGE NAME) | Next (PAGE NAME) >

SPUSED

Checks if a sprite exists (has been created by SPSET).

Syntax

SPUSED sprite% OUT exists%
ParameterDescription
sprite%Sprite management number
OutputDescription
exists%1 = sprite exists, 0 = sprite doesn’t exist

Examples

ACLS
PRINT SPUSED(7) '0
SPSET 7,0
PRINT SPUSED(7) '1 

Possible Errors

ErrorCause
Illegal function callWrong number of inputs or outputs
Out of rangesprite% is less than 0 or more than the maximum sprite management number
Type mismatchsprite% isn’t a number

Version Information

3.2.0

Added 1

References

1 SmileBoom, “Additions/Changes in Ver. 3.2.0 (June 17, 2015)” http://smilebasic.com/en/debug/archive/


Top | Up (Sprite) | < Previous (PAGE NAME) | Next (PAGE NAME) >