home *** CD-ROM | disk | FTP | other *** search
- on playSound whichChannel, whichSound
- puppetSound(0)
- puppetSound(whichChannel, whichSound)
- updateStage()
- end
-
- on setSoundLevel whichSprite, pmin, pmax
- global gSoundLevel, gThumbPuppet
- set curpos to the locH of sprite whichSprite
- set gSoundLevel to integer((curpos - pmin) * 8 / (pmax - pmin))
- set gSoundLevel to min(max(gSoundLevel, 0), 7)
- set the soundLevel to gSoundLevel
- set gThumbPuppet to whichSprite
- return gSoundLevel
- end
-
- on setSoundPos whichSprite, pmin, pmax
- global gSoundLevel, gThumbPuppet
- set curpos to pmin + integer(gSoundLevel * (pmax - pmin) / 7)
- puppetSprite(whichSprite, 1)
- set the locH of sprite whichSprite to curpos
- set the locV of sprite whichSprite to 468
- updateStage()
- set gThumbPuppet to whichSprite
- return curpos
- end
-