home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gSprite2Cast, gSprite3Cast, gSprite4Cast, gSprite5Cast
- puppetSprite(2, 1)
- if gSprite2Cast = the number of cast "LakeWave1" then
- set gSprite2Cast to the number of cast "LakeWave3"
- else
- if gSprite2Cast = the number of cast "LakeWave2" then
- set gSprite2Cast to the number of cast "LakeWave1"
- else
- if gSprite2Cast = the number of cast "LakeWave3" then
- set gSprite2Cast to the number of cast "LakeWave2"
- end if
- end if
- end if
- puppetSprite(3, 1)
- if gSprite3Cast = the number of cast "PondWave1" then
- set gSprite3Cast to the number of cast "PondWave2"
- else
- if gSprite3Cast = the number of cast "PondWave2" then
- set gSprite3Cast to the number of cast "PondWave3"
- else
- if gSprite3Cast = the number of cast "PondWave3" then
- set gSprite3Cast to the number of cast "PondWave1"
- end if
- end if
- end if
- puppetSprite(4, 1)
- if gSprite4Cast = the number of cast "Fountain1" then
- set gSprite4Cast to the number of cast "Fountain2"
- else
- if gSprite4Cast = the number of cast "Fountain2" then
- set gSprite4Cast to the number of cast "Fountain3"
- else
- if gSprite4Cast = the number of cast "Fountain3" then
- set gSprite4Cast to the number of cast "Fountain4"
- else
- if gSprite4Cast = the number of cast "Fountain4" then
- set gSprite4Cast to the number of cast "Fountain1"
- end if
- end if
- end if
- end if
- puppetSprite(5, 1)
- if gSprite5Cast = the number of cast "SeeSaw1" then
- set gSprite5Cast to the number of cast "SeeSaw2"
- else
- if gSprite5Cast = the number of cast "SeeSaw2" then
- set gSprite5Cast to the number of cast "SeeSaw3"
- else
- if gSprite5Cast = the number of cast "SeeSaw3" then
- set gSprite5Cast to the number of cast "SeeSaw4"
- else
- if gSprite5Cast = the number of cast "SeeSaw4" then
- set gSprite5Cast to the number of cast "SeeSaw1"
- end if
- end if
- end if
- end if
- set the castNum of sprite 2 to gSprite2Cast
- set the castNum of sprite 3 to gSprite3Cast
- set the castNum of sprite 4 to gSprite4Cast
- set the castNum of sprite 5 to gSprite5Cast
- updateStage()
- end
-
- on exitFrame
- if soundBusy(1) then
- go(the frame)
- else
- puppetSprite(2, 0)
- puppetSprite(3, 0)
- puppetSprite(4, 0)
- puppetSprite(5, 0)
- play done
- end if
- end
-