home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stickerpedia Stickerbook
/
Stickerbook.iso
/
pc
/
DATA
/
objects.cxt
/
00031_Script_oTimer
< prev
next >
Wrap
Text File
|
2003-03-19
|
860b
|
56 lines
--¨
oTimer
global oTimer, oHQ
property pStartTicks -- the ticks when timer wa started
property pEndTicks -- the ticks when the timer is going to be finished
property pTimeUp -- is set to 1 once pEndTicks equals or is bigger than the ticks
property pMyName
on new me
set pMyName = "oTimer"
add the actorlist, me
-- addObject me, 1
-- updateProgressBar ("Object loading", oTimer && "status #ok")
return me
end
on showProps me, outPutTo
showProps oHQ, me, outPutTo
end
on stepFrame me
if pEndTicks <= the ticks then set pTimeUp = 1
end
on start me, timerLength
set pStartTicks = the ticks
set pEndTicks = pStartTicks + timerLength
set pTimeUp = 0
end
on chkTime me
return pTimeUp
end
on delete me
deleteOne(the actorList,me)
end