home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / dxrs / radio.dxr / 00006_SelectClockWISE.ls < prev    next >
Encoding:
Text File  |  1996-12-05  |  1.3 KB  |  46 lines

  1. on SelectClockWISE whichKnob
  2.   global SelectCounter, RedCounter, eightButList, volumecounter
  3.   if SelectCounter = 100 then
  4.     if the castNum of sprite whichKnob = the number of member "SelectEnd" then
  5.       set the castNum of sprite whichKnob to the number of member "SelectStart"
  6.     else
  7.       set the castNum of sprite whichKnob to the castNum of sprite whichKnob + 1
  8.     end if
  9.     updateStage()
  10.     set SelectCounter to 0
  11.   else
  12.     set SelectCounter to 1 + SelectCounter
  13.   end if
  14.   if whichKnob = 4 then
  15.     if RedCounter = 250 then
  16.       if the locV of sprite 3 > 60 then
  17.         set the locV of sprite 3 to the locV of sprite 3 - 5
  18.       else
  19.         set the locV of sprite 3 to 50
  20.       end if
  21.       repeat with f = 1 to count(eightButList)
  22.         if the locV of sprite 3 = getAt(getAt(eightButList, f), 9) then
  23.           puppetSound(0)
  24.           updateStage()
  25.           puppetSound(getAt(getAt(eightButList, f), 10))
  26.           set RedCounter to 0
  27.         end if
  28.       end repeat
  29.       updateStage()
  30.       set RedCounter to 0
  31.     else
  32.       set RedCounter to 1 + RedCounter
  33.     end if
  34.   else
  35.     if volumecounter = 200 then
  36.       set volumecounter to 0
  37.       if the volume of sound 1 < 245 then
  38.         set the volume of sound 1 to the volume of sound 1 + 10
  39.       end if
  40.       updateStage()
  41.     else
  42.       set volumecounter to 1 + volumecounter
  43.     end if
  44.   end if
  45. end
  46.