home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global ans2, true_answer, Rand_Quest, guess, counter, n, scored, Rand_Sound
- set the visible of sprite 12 to 0
- set the blend of sprite 16 to 50
- set the blend of sprite 37 to 45
- set the blend of sprite 39 to 45
- set the soundEnabled to 1
- set Rand_Sound to random(5)
- if true_answer = "2" then
- set the soundEnabled to 1
- if Rand_Sound = 1 then
- puppetSound("yesm")
- end if
- if Rand_Sound = 2 then
- puppetSound("vfexllnt.wav")
- end if
- if Rand_Sound = 3 then
- puppetSound("vfyes.wav")
- end if
- if Rand_Sound = 4 then
- puppetSound("vmcorrct.wav")
- end if
- if Rand_Sound = 5 then
- puppetSound("clapwoop.wav")
- end if
- set scored to scored + 1
- set the visible of sprite 20 to 1
- end if
- if true_answer <> "2" then
- set the soundEnabled to 1
- if Rand_Sound = 1 then
- puppetSound("hateitm")
- end if
- if Rand_Sound = 2 then
- puppetSound("shutup.wav")
- end if
- if Rand_Sound = 3 then
- puppetSound("uhoh2.wav")
- end if
- if Rand_Sound = 4 then
- puppetSound("vfdsilly.wav")
- end if
- if Rand_Sound = 5 then
- puppetSound("laughm04.wav")
- end if
- set the visible of sprite 21 to 1
- end if
- set the visible of sprite 4 to 0
- set the visible of sprite 6 to 0
- updateStage()
- startTimer()
- repeat with n = 1 to 5
- startTimer()
- set the visible of sprite 5 to 1
- updateStage()
- repeat while the timer < 20
- end repeat
- startTimer()
- set the visible of sprite 5 to 0
- updateStage()
- repeat while the timer < 20
- end repeat
- end repeat
- set the blend of sprite 16 to 0
- set the visible of sprite 20 to 0
- set the visible of sprite 21 to 0
- set the visible of sprite 5 to 0
- updateStage()
- set counter to counter + 1
- puppetSound(0)
- set the blend of sprite 37 to 0
- set the blend of sprite 39 to 0
- go("start")
- end
-