home *** CD-ROM | disk | FTP | other *** search
/ The Princeton Review - Algebra Smart / ALGEBRA.iso / pc / lessons / algm1.dir / 00280_Script_280 < prev    next >
Text File  |  1996-10-02  |  750b  |  31 lines

  1. on mouseDown
  2.   puppetsprite (the clickOn), 1
  3.   global Hstart, Vstart
  4.   set Hstart = the locH of sprite (the clickOn)
  5.   set Vstart = the locV of sprite (the clickOn)
  6. end
  7.  
  8. on mouseUp
  9.   if sprite (the clickOn) intersects sprite 14 then
  10.     global looporNo, Hstart, Vstart
  11.     set the locH of sprite 31 = 341
  12.     set the locV of sprite 31 = 78
  13.     puppetsound "Ding"
  14.     SwapComment 282
  15.     updatestage
  16.     set looporNo = 0
  17.     startTimer
  18.     repeat while the timer < 60
  19.       nothing
  20.     end repeat
  21.     puppetsprite 2, 0
  22.     go to marker(1)
  23.   else 
  24.     puppetsound "Buzzer"
  25.     SwapComment 285
  26.     set the locH of sprite (the clickOn) = Hstart
  27.     set the locV of sprite (the clickOn) = Vstart
  28.     updatestage
  29.   end if
  30. end
  31.