home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- end
-
- on mouseDown
- global ans1, true_answer, Rand_Quest, guess, counter, checkcounter, n, level, m, scored, Rand_Sound, oldlevel, leveldiff, vert, x
- 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 < 11
- end repeat
- set the blend of sprite 5 to 65
- updateStage()
- set the soundEnabled to 1
- 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 = "1" 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
- 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 the visible of sprite 20 to 1
- end if
- if true_answer <> "1" 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)
- if level < 0 then
- set level to 0
- end if
- set leveldiff to oldlevel - level
- puppetSound(0)
- 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
- updateStage()
- end if
- startTimer()
- set true_answer to 0
- set the visible of sprite 23 to 1
- set the visible of sprite 24 to 1
- set the blend of sprite 15 to 0
- set checkcounter to 1
- set counter to counter + 1
- updateStage()
- set Rand_Sound to 10
- if level > oldlevel then
- 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
- else
- if level < oldlevel then
- repeat with x = 1 to oldlevel - level
- 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 repeat
- end if
- end if
- if level = 0 then
- go("lose")
- exit
- end if
- if level = 7 then
- go("win")
- exit
- end if
- set the visible of sprite 23 to 0
- set the visible of sprite 24 to 0
- set the visible of sprite 22 to 0
- set the visible of sprite 8 to 0
- set the visible of sprite 19 to 0
- updateStage()
- startTimer()
- set the visible of sprite 20 to 0
- updateStage()
- go("s")
- end
-