home *** CD-ROM | disk | FTP | other *** search
- on groANIMATESCREEN
- global grosectactive, groanimatelist, grosection, gropointer, groanimloop, grosprite, grotmpanimsprite, GRONoisePiCount, GROChooseQuit
- repeat with gropointer = 1 to count(groanimatelist)
- set grosprite to getAt(getAt(groanimatelist, gropointer), 1)
- if rollOver(grosprite) then
- setAt(getAt(groanimatelist, gropointer), 5, 1)
- if getAt(getAt(groanimatelist, gropointer), 4) = 1 then
- set the castNum of sprite grosprite to getAt(getAt(groanimatelist, gropointer), 2)
- set the castNum of sprite 34 to getAt(getAt(groanimatelist, gropointer), 6)
- set the locH of sprite 34 to 200
- set the locV of sprite 34 to 200
- set the ink of sprite 34 to 39
- updateStage()
- end if
- repeat while rollOver(grosprite)
- if rollOver(48) then
- exit repeat
- end if
- if the mouseDown then
- if getAt(getAt(groanimatelist, gropointer), 4) = 1 then
- sound fadeOut 1, 120
- startTimer()
- repeat while the timer < 120
- end repeat
- puppetSound(0)
- updateStage()
- setAt(getAt(groanimatelist, gropointer), 5, 0)
- do(getAt(grosection, gropointer))
- if GROChooseQuit = 2 then
- exit repeat
- end if
- end if
- end if
- if GROChooseQuit = 2 then
- exit repeat
- end if
- if gropointer > count(groanimatelist) then
- set gropointer to count(groanimatelist)
- end if
- if getAt(getAt(groanimatelist, gropointer), 4) = 1 then
- if GRONoisePiCount = 16 then
- set GRONoisePiCount to 0
- if the castNum of sprite grosprite <> getAt(getAt(groanimatelist, gropointer), 3) then
- set the castNum of sprite grosprite to the castNum of sprite grosprite + 1
- else
- set the castNum of sprite grosprite to getAt(getAt(groanimatelist, gropointer), 2)
- end if
- updateStage()
- else
- set GRONoisePiCount to 1 + GRONoisePiCount
- end if
- end if
- GRONoise()
- end repeat
- if GROChooseQuit = 2 then
- exit repeat
- end if
- if getAt(getAt(groanimatelist, gropointer), 5) = 1 then
- setAt(getAt(groanimatelist, gropointer), 5, 0)
- set the locH of sprite 34 to 2000
- repeat with x = 1 to count(groanimatelist)
- if getAt(getAt(groanimatelist, x), 4) = 0 then
- set the castNum of sprite 34 to getAt(getAt(groanimatelist, x), 6)
- set the locH of sprite 34 to 200
- set the locV of sprite 34 to 200
- end if
- end repeat
- updateStage()
- end if
- repeat with i = 1 to count(groanimatelist)
- if getAt(getAt(groanimatelist, i), 4) = 1 then
- set the castNum of sprite getAt(getAt(groanimatelist, i), 1) to 19
- updateStage()
- end if
- end repeat
- end if
- end repeat
- if GROChooseQuit <> 2 then
- GRONoise()
- GROQuitCD()
- end if
- end
-
- on GRONoise
- global groanimatelist, grotmpanimsprite
- IFLsectionWordAnimate()
- repeat with i = 1 to count(groanimatelist)
- if the castNum of sprite getAt(getAt(groanimatelist, i), 1) <> 22 then
- if (getAt(getAt(groanimatelist, i), 4) = 1) and (getAt(getAt(groanimatelist, i), 5) = 0) then
- set the castNum of sprite getAt(getAt(groanimatelist, i), 1) to the castNum of sprite getAt(getAt(groanimatelist, i), 1) + 1
- end if
- next repeat
- end if
- if (getAt(getAt(groanimatelist, i), 4) = 1) and (getAt(getAt(groanimatelist, i), 5) = 0) then
- set the castNum of sprite getAt(getAt(groanimatelist, i), 1) to 19
- end if
- end repeat
- updateStage()
- wait(0.03)
- end
-