home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global ans3, true_answer, Rand_Quest, guess, counter, checkcounter, n, level, m, scored, Rand_Sound, oldlevel, leveldiff, vert
- set checkcounter to 1
- set the visible of sprite 20 to 0
- puppetSound("click")
- set the blend of sprite 5 to 100
- updateStage()
- startTimer()
- repeat while the timer < 15
- end repeat
- set the blend of sprite 5 to 65
- updateStage()
- set the blend of sprite 46 to 60
- set the blend of sprite 38 to 45
- set the blend of sprite 39 to 45
- set the visible of sprite 12 to 0
- set the soundEnabled to 1
- puppetSound(0)
- updateStage()
- set the visible of sprite 8 to 1
- set the locV of sprite 8 to 250
- repeat with n = 1 to 100
- set the locH of sprite 8 to n
- updateStage()
- end repeat
- set Rand_Sound to random(5)
- if true_answer = "3" then
- set the castNum of sprite 8 to 173
- updateStage()
- repeat with n = 1 to 50
- set vert to the locV of sprite 8
- set the locV of sprite 8 to vert - n
- startTimer()
- repeat while the timer < 2
- nothing()
- end repeat
- updateStage()
- end repeat
- set the visible of sprite 8 to 0
- set oldlevel to level
- set level to level + 1
- set leveldiff to oldlevel - level
- 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 <> "3" then
- set the castNum of sprite 8 to 174
- updateStage()
- repeat with n = 1 to 50
- set vert to the locV of sprite 8
- set the locV of sprite 8 to vert + n
- startTimer()
- repeat while the timer < 2
- nothing()
- end repeat
- updateStage()
- end repeat
- set oldlevel to level
- set level to level - random(level - 1)
- set leveldiff to oldlevel - level
- 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 5 to 0
- updateStage()
- startTimer()
- set true_answer to 0
- set the visible of sprite 4 to 1
- set the visible of sprite 5 to 1
- set the visible of sprite 21 to 0
- set the visible of sprite 20 to 0
- set the visible of sprite 6 to 1
- set the visible of sprite 32 to 0
- set the blend of sprite 15 to 0
- set checkcounter to 1
- set counter to counter + 1
- updateStage()
- puppetSound(0)
- set the blend of sprite 38 to 0
- set the blend of sprite 39 to 0
- set the blend of sprite 46 to 0
- if level < 0 then
- set level to 0
- end if
- if level = 0 then
- go("lose")
- end if
- if level = 3 then
- go("win")
- end if
- if level = 0 then
- set the locV of sprite 14 to 300
- else
- set vert to the locV of sprite 14
- repeat with n = 1 to 15
- set the locV of sprite 14 to vert - n
- startTimer()
- repeat while the timer < 3
- end repeat
- updateStage()
- end repeat
- end if
- updateStage()
- go("s")
- set soundEnabled to 0
- set Rand_Sound to 10
- end
-