home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global red, blue, green, pink, yellow, redtotal, bluetotal, greentotal, pinktotal, yellowtotal
- if red = 1 then
- if redtotal = 1 then
- set the castNum of sprite 4 to cast "reddef"
- set the locH of sprite 4 to 267
- set the locV of sprite 4 to 116
- updateStage()
- puppetSound("doas2.wav")
- else
- set the castNum of sprite 4 to cast "reddef"
- set the locH of sprite 4 to 267
- set the locV of sprite 4 to 116
- updateStage()
- end if
- else
- set the castNum of sprite 4 to cast "red"
- set the locH of sprite 4 to 267
- set the locV of sprite 4 to 116
- updateStage()
- end if
- if blue = 1 then
- if bluetotal = 1 then
- set the castNum of sprite 5 to cast "bluedef"
- set the locH of sprite 5 to 478
- set the locV of sprite 5 to 109
- updateStage()
- puppetSound("give.wav")
- else
- set the castNum of sprite 5 to cast "bluedef"
- set the locH of sprite 5 to 478
- set the locV of sprite 5 to 109
- updateStage()
- end if
- else
- set the castNum of sprite 5 to cast "blue"
- set the locH of sprite 5 to 478
- set the locV of sprite 5 to 109
- updateStage()
- end if
- if green = 1 then
- if greentotal = 1 then
- set the castNum of sprite 6 to cast "greendef"
- set the locH of sprite 6 to 383
- set the locV of sprite 6 to 243
- updateStage()
- puppetSound("iam.wav")
- else
- set the castNum of sprite 6 to cast "greendef"
- set the locH of sprite 6 to 383
- set the locV of sprite 6 to 243
- updateStage()
- end if
- else
- set the castNum of sprite 6 to cast "green"
- set the locH of sprite 6 to 383
- set the locV of sprite 6 to 243
- updateStage()
- end if
- if pink = 1 then
- if pinktotal = 1 then
- set the castNum of sprite 7 to cast "pinkdef"
- set the locH of sprite 7 to 287
- set the locV of sprite 7 to 340
- updateStage()
- puppetSound("bookmor.wav")
- else
- set the castNum of sprite 7 to cast "pinkdef"
- set the locH of sprite 7 to 287
- set the locV of sprite 7 to 340
- updateStage()
- end if
- else
- set the castNum of sprite 7 to cast "pink"
- set the locH of sprite 7 to 287
- set the locV of sprite 7 to 340
- updateStage()
- end if
- if yellow = 1 then
- if yellowtotal = 1 then
- set the castNum of sprite 8 to cast "yellowdef"
- set the locH of sprite 8 to 501
- set the locV of sprite 8 to 304
- updateStage()
- puppetSound("revquiet.wav")
- else
- set the castNum of sprite 8 to cast "yellowdef"
- set the locH of sprite 8 to 501
- set the locV of sprite 8 to 304
- updateStage()
- end if
- else
- set the castNum of sprite 8 to cast "yellow"
- set the locH of sprite 8 to 501
- set the locV of sprite 8 to 304
- updateStage()
- end if
- end
-