home *** CD-ROM | disk | FTP | other *** search
/ Helix Design System / HELIX_DESIGN_SYSTEM_DEMO.iso / french / modeling.dxr / 00026.ls < prev    next >
Encoding:
Text File  |  1996-12-19  |  709 b   |  30 lines

  1. on mouseDown
  2.   set the puppet of sprite 36 to 1
  3.   set the locV of sprite 36 to the locV of sprite 36 + 3
  4.   set the locH of sprite 36 to the locH of sprite 36 + 2
  5.   updateStage()
  6. end
  7.  
  8. on mouseUp
  9.   global Warten
  10.   set the locV of sprite 36 to the locV of sprite 36 - 3
  11.   set the locH of sprite 36 to the locH of sprite 36 - 2
  12.   if the castNum of sprite 36 = 9 then
  13.     set Warten to 0
  14.     continue()
  15.   end if
  16.   if the castNum of sprite 36 = 8 then
  17.     set the castNum of sprite 36 to 9
  18.     set Warten to 1
  19.     updateStage()
  20.     pause()
  21.   end if
  22.   repeat with i = 30 to 38
  23.     set the puppet of sprite i to 0
  24.   end repeat
  25.   if Warten = 0 then
  26.     set the castNum of sprite 36 to 8
  27.     updateStage()
  28.   end if
  29. end
  30.