home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gSprite2Cast, PlayedCarAnim, TimerCount
- CursorOn()
- updateStage()
- set TimerCount to TimerCount + 1
- if (TimerCount > 80) and (PlayedCarAnim = 0) then
- puppetSprite(2, 0)
- puppetSprite(3, 0)
- puppetSprite(4, 0)
- set TimerCount to 0
- set PlayedCarAnim to 1
- if gSprite2Cast = the number of cast "LakeWave1" then
- CursorOff()
- go("OtherCar1")
- else
- if gSprite2Cast = the number of cast "LakeWave2" then
- CursorOff()
- go("OtherCar2")
- else
- go("OtherCar3")
- CursorOff()
- end if
- end if
- else
- if (TimerCount > 150) and (PlayedCarAnim = 1) then
- puppetSprite(2, 0)
- puppetSprite(3, 0)
- puppetSprite(4, 0)
- set TimerCount to 0
- if gSprite2Cast = the number of cast "LakeWave1" then
- CursorOff()
- go("TownAnim1")
- else
- if gSprite2Cast = the number of cast "LakeWave2" then
- CursorOff()
- go("TownAnim2")
- else
- CursorOff()
- go("TownAnim3")
- end if
- end if
- end if
- end if
- end
-
- on exitFrame
- global gSprite2Cast, gSprite3Cast, gSprite4Cast
- 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
- set the castNum of sprite 2 to gSprite2Cast
- set the castNum of sprite 3 to gSprite3Cast
- set the castNum of sprite 4 to gSprite4Cast
- go(the frame)
- end
-