home *** CD-ROM | disk | FTP | other *** search
- 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 < 15
- end repeat
- set the blend of sprite 5 to 65
- 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 = "1" then
- if Rand_Sound = 1 then
- puppetSound("jazzbit2")
- end if
- if Rand_Sound = 2 then
- puppetSound("rockbit2")
- end if
- if Rand_Sound = 3 then
- puppetSound("funkbit4")
- end if
- if Rand_Sound = 4 then
- puppetSound("funkbit3")
- end if
- if Rand_Sound = 5 then
- puppetSound("funkbit2")
- end if
- 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 visible of sprite 20 to 1
- end if
- if true_answer <> "1" then
- if Rand_Sound = 1 then
- puppetSound("rockbit3")
- end if
- if Rand_Sound = 2 then
- puppetSound("bluebit9")
- end if
- if Rand_Sound = 3 then
- puppetSound("bluebit7")
- end if
- if Rand_Sound = 4 then
- puppetSound("bluebit6")
- end if
- if Rand_Sound = 5 then
- puppetSound("bluebit3")
- end if
- 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)
- 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()
- puppetSound(0)
- updateStage()
- set soundEnabled to 0
- set Rand_Sound to 10
- if level = 0 then
- lose()
- end if
- 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
- lose()
- end if
- if level = 7 then
- win()
- end if
- set the visible of sprite 22 to 0
- set the visible of sprite 23 to 0
- set the visible of sprite 24 to 0
- set the visible of sprite 8 to 0
- set the visible of sprite 19 to 0
- updateStage()
- repeat while the mouseDown = 0
- nothing()
- end repeat
- set the visible of sprite 20 to 0
- updateStage()
- go("s")
- end
-