home *** CD-ROM | disk | FTP | other *** search
/ Car Screensaver - Toyota / TOYOTA.iso / mjparty / vivi_ex.exe / vivi_ex.DXR / 00051.ls < prev    next >
Encoding:
Text File  |  1996-05-13  |  1.4 KB  |  76 lines

  1. on mouseUp
  2.   set h to the mouseH
  3.   set num to the clickOn
  4.   puppetSound(3, 100)
  5.   cursor(200)
  6.   set the cursor of sprite 41 to 0
  7.   set the cursor of sprite 42 to 0
  8.   if num = 42 then
  9.     okh()
  10.   else
  11.     nph(h)
  12.   end if
  13. end
  14.  
  15. on okh
  16.   set the castNum of sprite 42 to 232
  17.   updateStage()
  18.   repeat while soundBusy(3)
  19.     nothing()
  20.   end repeat
  21.   puppetSound(3, 94)
  22.   set the castNum of sprite 40 to 225
  23.   set the locV of sprite 41 to 412
  24.   set the castNum of sprite 42 to 231
  25.   set the locV of sprite 46 to 273
  26.   set the castNum of sprite 46 to 225
  27.   puppetTransition(15, 1, 4, 1)
  28.   updateStage()
  29.   puppetSprite(40, 0)
  30.   puppetSprite(46, 0)
  31.   if the frame < 20 then
  32.     go("m")
  33.   else
  34.     startgame()
  35.     go(marker(-3) + 1)
  36.   end if
  37. end
  38.  
  39. on nph h
  40.   if h < 51 then
  41.     lefth()
  42.   else
  43.     righth()
  44.   end if
  45.   repeat while soundBusy(3)
  46.     nothing()
  47.   end repeat
  48.   puppetSound(3, 93)
  49.   updateStage()
  50.   go(marker(0) + 1)
  51. end
  52.  
  53. on lefth
  54.   global gnum1
  55.   set the castNum of sprite 41 to 207
  56.   updateStage()
  57.   set gnum1 to gnum1 - 1
  58.   if gnum1 < 1 then
  59.     set gnum1 to 10
  60.   end if
  61.   set the castNum of sprite 40 to gnum1 + 210
  62.   puppetTransition(1, 1, 8, 1)
  63. end
  64.  
  65. on righth
  66.   global gnum1
  67.   set the castNum of sprite 41 to 208
  68.   set gnum1 to gnum1 + 1
  69.   if gnum1 > 10 then
  70.     set gnum1 to 1
  71.   end if
  72.   updateStage()
  73.   set the castNum of sprite 40 to gnum1 + 210
  74.   puppetTransition(2, 1, 8, 1)
  75. end
  76.