home *** CD-ROM | disk | FTP | other *** search
/ The Princeton Review - Algebra Smart / ALGEBRA.iso / pc / lessons / algm4.dir / 00278_Script_scr18 < prev    next >
Text File  |  1996-10-02  |  657b  |  28 lines

  1. on mouseDown
  2.   global Hstart, Vstart
  3.   set Hstart = the locH of sprite (the clickOn)
  4.   set Vstart = the locV of sprite (the clickOn)
  5. end
  6.  
  7. on mouseUp
  8.   if sprite (the clickOn) intersects sprite 14 then
  9.     global looporNo, Hstart, Vstart
  10.     puppetsound "Ding"
  11.     SwapComment 98
  12.     updatestage
  13.     set looporNo = 0
  14.     enableNext(41)
  15.     repeat with x = 30 to 35
  16.       puppetsprite x, 0
  17.     end repeat
  18.     go to marker(1)
  19.   else 
  20.     puppetsound "Buzzer"
  21.     SwapComment 99
  22.   end if
  23.   puppetsprite (the clickOn), 1
  24.   set the locH of sprite (the clickOn) = Hstart
  25.   set the locV of sprite (the clickOn) = Vstart
  26.   updatestage
  27. end
  28.