TI99 Environment

# CALL_SHOWSPRITE

Syntax

CALL_SHOWSPRITE(sprite-number)

Description

The CALL_SHOWSPRITE function shows a sprite previously hidden with the CALL_HIDESPRITE function. This function does not reinstate sprites deleted with CALL_DELSPRITE. To reinstate a deleted sprite use the CALL_SPRITE() function. Valid Values: sprite-number: accepts an integer between 1-maxsprites.

Example Code

    randomize hitimer()
    call_magnify(2)
    for i = 1 to 32
       call_sprite(i,42,16,rnd(191)+1,rnd(255)+1,rnd(20)-10, rnd(20)-10)
    next i
    do
       call_clear()
       display_at(1,1,"Press any key to hide",0)
       tiwaitkey()
       for i = 1 to 32
          call_hidesprite(i)
       next i
       call_clear()
       display_at(24,1,"Press any key to show",0)
       tiwaitkey()
       for i = 1 to 32
          CALL_SHOWSPRITE(i)
       next i
    loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020