home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gvDidItOnce, gvHoofSprite, gvVelmaSprite, gvHeadSprite
- set gvHeadSprite to 4
- set gvVelmaSprite to 23
- set gvHoofSprite to 22
- set gvDidItOnce to 0
- set the puppet of sprite gvVelmaSprite to 1
- set the puppet of sprite gvHoofSprite to 1
- set the visible of sprite gvHoofSprite to 0
- xPlat()
- set the keyDownScript to "checkKeyForQuit"
- set the exitLock to 1
- end
-
- on SpeakMan
- global gvHeadSprite
- repeat while the soundBusy of 1
- if the mouseDown then
- exit repeat
- end if
- set the castNum of sprite gvHeadSprite to the number of cast "head1"
- updateStage()
- wait(10)
- set the castNum of sprite gvHeadSprite to the number of cast "head2"
- updateStage()
- wait(10)
- end repeat
- set the castNum of sprite gvHeadSprite to the number of cast "head2"
- updateStage()
- end
-
- on stopMovie
- global gvVelmaSprite, gvHoofSprite, gvHeadSprite
- set the puppet of sprite gvVelmaSprite to 0
- set the puppet of sprite gvHoofSprite to 0
- set the puppet of sprite gvHeadSprite to 0
- end
-
- on wait vTicks
- startTimer()
- repeat while the timer < vTicks
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end
-
- on waitSound
- repeat while soundBusy(1)
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end
-
- on SpeakVelma3
- global gvVelmaSprite, gvHoofSprite
- set the puppet of sprite gvVelmaSprite to 1
- set vCounter to 0
- repeat while soundBusy(1)
- if the mouseDown then
- sound stop 1
- exit repeat
- end if
- if (vCounter = 5) or (vCounter = 2) or (vCounter = 7) or (vCounter = 10) then
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma4"
- updateStage()
- wait(10)
- end if
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma3"
- updateStage()
- wait(10)
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma1"
- updateStage()
- wait(10)
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma2"
- updateStage()
- wait(10)
- set vCounter to vCounter + 1
- end repeat
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma1"
- updateStage()
- end
-
- on SpeakGoodbye
- global gvHoofSprite, gvVelmaSprite
- set the visible of sprite gvHoofSprite to 1
- set the castNum of sprite gvHoofSprite to the number of cast "hoof2"
- updateStage()
- wait(5)
- set the castNum of sprite gvHoofSprite to the number of cast "hoof1"
- updateStage()
- wait(5)
- set the castNum of sprite gvHoofSprite to the number of cast "hoof2"
- updateStage()
- wait(5)
- set the castNum of sprite gvHoofSprite to the number of cast "hoof1"
- updateStage()
- wait(5)
- set the visible of sprite gvHoofSprite to 0
- puppetSound(byeFile())
- updateStage()
- repeat while the soundBusy of 1
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma2"
- updateStage()
- wait(10)
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma3"
- updateStage()
- wait(10)
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma1"
- updateStage()
- wait(10)
- end repeat
- set the castNum of sprite gvVelmaSprite to the number of cast "velma6"
- updateStage()
- wait(15)
- set the castNum of sprite gvVelmaSprite to the number of cast "velma5"
- updateStage()
- wait(10)
- set the castNum of sprite gvVelmaSprite to the number of cast "Velma1"
- updateStage()
- end
-