home *** CD-ROM | disk | FTP | other *** search
/ Blender Volume 3 #4 / Blender_3_4.iso / BLENDER / FILES / Shared.Cst / 00064.ls < prev    next >
Encoding:
Text File  |  1997-01-01  |  466 b   |  21 lines

  1. --VOLUME CONTROL FOR MOVIES
  2. on SETSPEAKER
  3.   global VOLUME
  4.   if (VOLUME >= 0) and (VOLUME <= 7) then
  5.     set the soundLevel to VOLUME
  6.     updateStage
  7.   end if
  8. end
  9.  
  10. --RANDOM MOTION FOR TRAPDOORS
  11. on TRAPDOOR
  12.   puppetSprite 40, TRUE
  13.   set X to the locH of sprite 40
  14.   set Y to the locV of sprite 40
  15.   set X = X + 50 - random (35)
  16.   set Y = Y + 40 - random (35)
  17.   set X = X mod 640
  18.   set Y = Y mod 480
  19.   set the locH of Sprite 40 = X
  20.   set the locV of Sprite 40 = Y
  21. end