Top | Up (Sprite) | < Previous (PAGE NAME) | Next (PAGE NAME) >
Checks if a sprite exists (has been created by SPSET
).
SPUSED sprite% OUT exists%
Parameter | Description |
---|---|
sprite% | Sprite management number |
Output | Description |
exists% | 1 = sprite exists, 0 = sprite doesn’t exist |
ACLS
PRINT SPUSED(7) '0
SPSET 7,0
PRINT SPUSED(7) '1
Error | Cause |
---|---|
Illegal function call | Wrong number of inputs or outputs |
Out of range | sprite% is less than 0 or more than the maximum sprite management number |
Type mismatch | sprite% isn’t a number |
Added 1
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) >