home *** CD-ROM | disk | FTP | other *** search
- on animate snd, chan, startCast, castCnt, fps, pic
- puppetSprite(chan, 1)
- if snd <> EMPTY then
- puppetSound(snd)
- end if
- set nTicks to 60 / fps
- set first to the number of cast startCast
- set last to the number of cast startCast + abs(castCnt) - 1
- if castCnt >= 0 then
- repeat with n = first to last
- set start to the ticks
- set the castNum of sprite chan to n
- updateStage()
- repeat while (the ticks - start) < nTicks
- end repeat
- end repeat
- else
- repeat with n = last down to first
- set start to the ticks
- set the castNum of sprite chan to n
- updateStage()
- repeat while (the ticks - start) < nTicks
- end repeat
- end repeat
- end if
- if pic <> EMPTY then
- set the castNum of sprite chan to the number of cast pic
- updateStage()
- end if
- end
-
- on buttonPress snd, chan, onCast, offCast
- if snd <> EMPTY then
- puppetSound(snd)
- end if
- puppetSprite(chan, 1)
- set the castNum of sprite chan to the number of cast onCast
- updateStage()
- repeat while the mouseDown
- end repeat
- set the castNum of sprite chan to the number of cast offCast
- updateStage()
- end
-
- on delay cnt
- set start to the ticks
- repeat while (the ticks - start) < cnt
- end repeat
- end
-
- on frankflash
- global gPerspective
- if gPerspective = 1 then
- puppetSprite(10, 1)
- set the castNum of sprite 4 to the number of cast "frankflash"
- updateStage()
- delay(5)
- set the castNum of sprite 4 to the number of cast "FFOLBMP"
- puppetSprite(10, 0)
- end if
- end
-
- on idflash
- global gPerspective
- if gPerspective = 2 then
- puppetSprite(10, 1)
- set the castNum of sprite 4 to the number of cast "idflash"
- updateStage()
- delay(5)
- set the castNum of sprite 4 to the number of cast "JFOLDER1.BMP"
- puppetSprite(10, 0)
- end if
- end
-
- on roarkflash
- global gPerspective
- if gPerspective = 3 then
- puppetSprite(10, 1)
- set the castNum of sprite 4 to the number of cast "roarkflash"
- updateStage()
- delay(5)
- set the castNum of sprite 4 to the number of cast "rFOLDER1.BMP"
- puppetSprite(10, 0)
- end if
- end
-