home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / pc / tutorial / devglry / toppanmk / source / nasu.dir / 00001.ls next >
Encoding:
Text File  |  1996-05-08  |  607 b   |  30 lines

  1. on wait t
  2.   set now to the ticks
  3.   repeat while the ticks < (now + t)
  4.   end repeat
  5. end
  6.  
  7. on pushbtnmove
  8.   playsound(27)
  9.   set spnum to the clickOn
  10.   set the locH of sprite spnum to the locH of sprite spnum + 2
  11.   set the locV of sprite spnum to the locV of sprite spnum + 2
  12.   updateStage()
  13.   repeat while stillDown()
  14.   end repeat
  15.   waitsound()
  16.   set the locH of sprite spnum to the locH of sprite spnum - 2
  17.   set the locV of sprite spnum to the locV of sprite spnum - 2
  18.   updateStage()
  19. end
  20.  
  21. on playsound num
  22.   puppetSound(1, num)
  23.   updateStage()
  24. end
  25.  
  26. on waitsound
  27.   repeat while soundBusy(1)
  28.   end repeat
  29. end
  30.