TI99 Environment

# CALL_DELSPRITE

Syntax

CALL_DELSPRITE(sprite-number)

Description

The CALL_DELSPRITE() function deletes individual 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. Valid Values: sprite-number: accepts an integer between 1-maxsprites.

Example Code

    call_magnify(2)
    numsprites = 9
    call_screen(5)
    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
    for i = 1 to numsprites
       call_clear()
       display_at(1,1,"Hit key to delete sprite:"+str$(i),0)
       tiwaitkey()
       CALL_DELSPRITE(i)
    next i
    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