home *** CD-ROM | disk | FTP | other *** search
- on pointer total, loopSound
- global angle
- set the visible of sprite 4 to 0
- if stringp(loopSound) then
- puppetSound(loopSound)
- end if
- repeat while the stillDown
- set vert to the mouseV - the locV of sprite the clickOn
- set horz to the mouseH - the locH of sprite the clickOn
- set angle to 3.14159260000000007 / 4
- set angle to atan(horz / (0.001 - vert)) + angle
- set angle to integer((angle * (total - 1) / 3.14159260000000007 * 2.0) + 1)
- if angle > total then
- set angle to total
- end if
- if angle < 1 then
- set angle to 1
- end if
- if vert < 0 then
- set snap to word 1 of the name of cast the castNum of sprite the clickOn
- put " " after snap
- put angle after snap
- set the castNum of sprite the clickOn to the number of member snap
- set the volume of sound 3 to integer(275 / (total - 1) * (angle - 1))
- updateStage()
- end if
- end repeat
- puppetSound(0)
- set the visible of sprite 4 to 1
- updateStage()
- end
-