home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gDolphinNumList, VIZSPRITE
- set gDolphinNumList to [0, random(5), random(5), random(5), random(5)]
- set the puppet of sprite 2 to 0
- set the puppet of sprite 3 to 0
- set the puppet of sprite 4 to 0
- set the puppet of sprite 5 to 0
- set the puppet of sprite 8 to 0
- updateStage()
- set the puppet of sprite 2 to 1
- set the puppet of sprite 3 to 1
- set the puppet of sprite 4 to 1
- set the puppet of sprite 5 to 1
- set the puppet of sprite 8 to 1
- dolphinInvis()
- set VIZSPRITE to 3
- end
-
- on mouseDown
- global VIZSPRITE
- set the visible of sprite VIZSPRITE to 1
- set VIZSPRITE to VIZSPRITE + 1
- if VIZSPRITE > 6 then
- dolphinInvis()
- end if
- end
-
- on swim howfast, whichNum
- global gDolphinNumList
- set the locH of sprite whichNum to the locH of sprite whichNum + howfast
- set dolphinNum to getAt(gDolphinNumList, whichNum)
- set the castNum of sprite whichNum to the number of member ("dolphin " & dolphinNum)
- if dolphinNum < 5 then
- set dolphinNum to dolphinNum + 1
- else
- set dolphinNum to 1
- end if
- setAt(gDolphinNumList, whichNum, dolphinNum)
- if the locH of sprite whichNum > (the stageRight + 45) then
- set the locH of sprite whichNum to -40
- setAt(gDolphinNumList, whichNum, random(5))
- end if
- end
-
- on dolphinInvis
- global VIZSPRITE
- set VIZSPRITE to 3
- repeat with dolphinSprite = 3 to 5
- set the visible of sprite dolphinSprite to 0
- end repeat
- end
-