home *** CD-ROM | disk | FTP | other *** search
/ Imaginemos! 2 / Imaginemos2.iso / PC / PRETEND2.EXE / PLUTO.DXR / 00011.ls < prev    next >
Encoding:
Text File  |  1996-09-10  |  1.3 KB  |  68 lines

  1. on cleanUp
  2.   repeat with i = 1 to 48
  3.     set the visible of sprite i to 1
  4.     set the puppet of sprite i to 0
  5.   end repeat
  6. end
  7.  
  8. on clickFunction
  9.   if (the clickOn <> 0) and (the clickOn <> 46) then
  10.     puppetSound(0)
  11.   end if
  12. end
  13.  
  14. on wait howLong
  15.   updateStage()
  16.   startTimer()
  17.   repeat while the timer < howLong
  18.     nothing()
  19.     if the mouseDown and (the clickOn <> 0) and (soundBusy(1) = 0) then
  20.       exit
  21.     end if
  22.   end repeat
  23. end
  24.  
  25. on door_Move
  26.   if soundBusy(1) = 0 then
  27.     puppetSound("Door")
  28.   end if
  29.   updateStage()
  30.   set x to the visible of sprite 46
  31.   set dir to integer(x - 0.5)
  32.   set t to integer(not x - 0.5) + 47
  33.   repeat with r = 1 to 5
  34.     if (r / 2 * 2) <> r then
  35.       set the visible of sprite t to not x
  36.     else
  37.       set the visible of sprite t to x
  38.     end if
  39.     if (the visible of sprite t = 0) and (r <> 5) then
  40.       set t to t + dir
  41.       next repeat
  42.     end if
  43.     wait(5)
  44.   end repeat
  45.   repeat while soundBusy(1)
  46.     nothing()
  47.   end repeat
  48. end
  49.  
  50. on changeMovie whichMovie, whichFrame
  51.   global gCurPath
  52.   sound playFile 1, gCurPath & "Trans.aif"
  53.   go(whichFrame, whichMovie)
  54. end
  55.  
  56. on startMovie
  57.   global gCurPath
  58.   preLoadCast()
  59.   set the mouseDownScript to "clickFunction"
  60.   set the visible of sprite 47 to 0
  61.   set the visible of sprite 48 to 0
  62. end
  63.  
  64. on stopMovie
  65.   unLoadCast()
  66.   cleanUp()
  67. end
  68.