home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set mh to the mouseH
- set sph to the locH of sprite 7
- set unitWidth to 16
- set offsetH to 0
- set offsetV to 0
- set whichVol to (mh - sph - (offsetH - unitWidth)) / unitWidth
- puppetSprite(6, 1)
- set the castNum of sprite 6 to 92 + whichVol
- updateStage()
- if whichVol = 1 then
- set the volume of sound 1 to 100
- set the volume of sound 2 to 40
- puppetSound("beep.wav")
- updateStage()
- end if
- if whichVol = 2 then
- set the volume of sound 1 to 150
- set the volume of sound 2 to 60
- puppetSound("beep.wav")
- updateStage()
- end if
- if whichVol = 3 then
- set the volume of sound 1 to 200
- set the volume of sound 2 to 80
- puppetSound("beep.wav")
- updateStage()
- end if
- if whichVol = 4 then
- set the volume of sound 1 to 255
- set the volume of sound 2 to 100
- puppetSound("beep.wav")
- updateStage()
- end if
- end
-