home *** CD-ROM | disk | FTP | other *** search
/ Curio City 11 / CURIO11.bin / pc / movie / game / space.dir / 00297_ãóLÉnÉìÉhÉâ.ls < prev    next >
Encoding:
Text File  |  1998-01-01  |  1.7 KB  |  76 lines

  1. on pushbutton1 markername
  2.   set spnum to clickOn()
  3.   set nowcastnum to the memberNum of sprite spnum
  4.   puppetSprite(spnum, 1)
  5.   repeat while the stillDown
  6.     if rollOver(spnum) then
  7.       set the memberNum of sprite spnum to nowcastnum + 1
  8.     else
  9.       set the memberNum of sprite spnum to nowcastnum
  10.     end if
  11.     updateStage()
  12.   end repeat
  13.   updateStage()
  14.   if rollOver(spnum) then
  15.     wait(30)
  16.     go(markername)
  17.   end if
  18.   puppetSprite(spnum, 0)
  19.   updateStage()
  20. end
  21.  
  22. on pushbutton2 markername
  23.   set spnum to clickOn()
  24.   set nowcasth to the locH of sprite spnum
  25.   set nowcastv to the locV of sprite spnum
  26.   puppetSprite(spnum, 1)
  27.   repeat while the stillDown
  28.     if rollOver(spnum) then
  29.       set the locH of sprite spnum to nowcasth + 4
  30.       set the locV of sprite spnum to nowcastv + 4
  31.     else
  32.       set the locH of sprite spnum to nowcasth
  33.       set the locV of sprite spnum to nowcastv
  34.     end if
  35.     updateStage()
  36.   end repeat
  37.   set the locH of sprite spnum to nowcasth
  38.   set the locV of sprite spnum to nowcastv
  39.   updateStage()
  40.   if rollOver(spnum) then
  41.     wait(30)
  42.     go(markername)
  43.   end if
  44.   puppetSprite(spnum, 0)
  45.   updateStage()
  46. end
  47.  
  48. on btndown2
  49.   set spnum to clickOn()
  50.   set nowcastnum to the memberNum of sprite spnum
  51.   puppetSprite(spnum, 1)
  52.   repeat while stillDown()
  53.     if rollOver(clickOn()) then
  54.       set the memberNum of sprite spnum to nowcastnum + 1
  55.     else
  56.       set the memberNum of sprite spnum to nowcastnum
  57.     end if
  58.     updateStage()
  59.   end repeat
  60.   wait(30)
  61.   set the memberNum of sprite spnum to nowcastnum
  62.   puppetSprite(spnum, 0)
  63.   updateStage()
  64.   if rollOver(clickOn()) then
  65.     return 1
  66.   end if
  67.   return 0
  68. end
  69.  
  70. on wait t
  71.   set endtime to the ticks + t
  72.   repeat while the ticks <= endtime
  73.     nothing()
  74.   end repeat
  75. end
  76.