![]() |
| TI99 Environment |
| Syntax |
| CALL_MAGNIFYSPRITE(sprite-number,magnification-factor) |
| Description |
| The MAGNIFYSPRITE() function allows you to change the size (magnification-factor) of an individual ACTIVE (existing) sprite (sprite-number). This function will have its intended effect when you call it after creating the sprite. As with the MAGNIFY() function, magnification-factor may be 1, 2, 3, or 4. If you make a subsequent call to the function CALL_MAGNIFY, the size of all sprites will change. |
| Example Code |
randomize hitimer()
numsprites = 20
call_screen(2)
for i=1 to numsprites
repeat
cl = rnd(14)+2
until cl <> 8
call_sprite(i,42,cl,rnd(176)+1,rnd(248)+1,0,0)
next i
for i=1 to numsprites
tiwait(500)
CALL_MAGNIFYSPRITE(i,2)
call_colorsprite(i,16)
tiwait(1000)
call_delsprite(i)
next i
A$="DONE":for i=1 to len(A$):call_colorchar(asc(mid$(A$,i,1)),16,1):next
display_at(24,1,A$,0) : tiwaitkey()
end
| Go back to ... |
| TI99E Commands Menu |
| Main Menu |
Copyright © Carlos Santiago Lebron - TI99 Environment 2020
![]() |