home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 22
/
cdrt22.iso
/
pc
/
bugbook
/
wait.dir
/
00039_Script_39
< prev
next >
Wrap
Text File
|
1995-06-27
|
565b
|
26 lines
on exitFrame
global bugActive,bugState,bugTimeout,spriteIndex
if ((the timer > bugTimeout) and (bugActive=FALSE)) then
set bugActive=TRUE
set bugState=1
end if
if (bugActive) then bugAction()
set found=FALSE
set spriteIndex=5
repeat while (not(found)) and (spriteIndex<9)
if rollover(spriteIndex) then set found=TRUE
set spriteIndex=spriteIndex+1
end repeat
if found then
set spriteIndex=spriteIndex-5
set tmpState = string(spriteIndex)
go tmpState
else
go "0"
end if
end