![]() |
| TI99 Environment |
| Syntax |
| CALL_DELSPRITEALL() |
| Description |
|
The CALL_DELSPRITEALL() function deletes all active sprites from further access by a program and, for animated sprites, removes their animation properties. To reinstate deleted sprites you will need to use the CALL_SPRITE() function. To reinstate the animation properties you will need to use the CALL_CREATEANIMATEDSPRITE() function.
|
| Example Code |
randomize hitimer()
call_magnify(2)
numsprites = 9
call_screen(4)
for i = 1 to numsprites
repeat
sprcolor = rnd(14)+2
until sprcolor <> TIScreencolor
call_sprite(i,48+i,sprcolor,rnd(191)+1,rnd(255)+1,rnd(20)-10, rnd(20)-10)
next i
call_clear()
ti_printat(1,1,"Hit key to delete all sprites")
tiwaitkey()
CALL_DELSPRITEALL()
call_clear()
display_at(24,1,"Press any key to end.",0)
tiwaitkey()
end
| Go back to ... |
| TI99E Commands Menu |
| Main Menu |
Copyright © Carlos Santiago Lebron - TI99 Environment 2020
![]() |