home *** CD-ROM | disk | FTP | other *** search
/ Car Screensaver - Toyota / TOYOTA.iso / mjparty / no1_demo / dnorp00.dxr / script_6.ls < prev    next >
Encoding:
Text File  |  1996-10-31  |  1.7 KB  |  92 lines

  1. on exitFrame
  2.   global gtime1, gflag1
  3.   preLoadCast(153)
  4.   repeat while soundBusy(1)
  5.     if the timer > 5 then
  6.       moveh1()
  7.     end if
  8.     if the mouseDown then
  9.       exith()
  10.     end if
  11.   end repeat
  12.   puppetSound(2, 153)
  13.   updateStage()
  14.   set gflag1 to 0
  15.   repeat while gflag1 <> 11
  16.     if the timer > 5 then
  17.       moveh1()
  18.     end if
  19.     if the mouseDown then
  20.       exith()
  21.     end if
  22.     if gtime1 = 24 then
  23.       set gflag1 to gflag1 + 1
  24.     end if
  25.   end repeat
  26.   unLoadCast()
  27. end
  28.  
  29. on moveh1
  30.   global gtime1
  31.   if gtime1 = 24 then
  32.     set gtime1 to 1
  33.   else
  34.     set gtime1 to gtime1 + 1
  35.   end if
  36.   if (gtime1 mod 12) = 0 then
  37.     curh()
  38.   end if
  39.   kumoh(1)
  40.   if (gtime1 mod 2) = 0 then
  41.     kumoh(2)
  42.     sunh()
  43.     dogh()
  44.   end if
  45.   set num to the locH of sprite 5
  46.   if num <= 0 then
  47.     set the locH of sprite 5 to 703
  48.   else
  49.     set the locH of sprite 5 to num - 12
  50.   end if
  51.   set the locV of sprite 5 to 120 + random(10)
  52.   updateStage()
  53.   startTimer()
  54. end
  55.  
  56. on kumoh pos
  57.   global gwlist1
  58.   set num to getAt(gwlist1, pos)
  59.   if num = 8 then
  60.     set num to 1
  61.   else
  62.     set num to num + 1
  63.   end if
  64.   setAt(gwlist1, pos, num)
  65.   if num > 5 then
  66.     set num to num - ((num - 5) * 2)
  67.   end if
  68.   set the locV of sprite (pos + 1) to 71 + (1 * num)
  69. end
  70.  
  71. on sunh
  72.   if the memberNum of sprite 4 = 25 then
  73.     set the memberNum of sprite 4 to 26
  74.   else
  75.     set the memberNum of sprite 4 to 25
  76.   end if
  77. end
  78.  
  79. on dogh
  80.   set num to the locH of sprite 6
  81.   if num <= 0 then
  82.     set the locH of sprite 6 to 742
  83.   else
  84.     set the locH of sprite 6 to num - 10
  85.   end if
  86.   if the memberNum of sprite 6 = 28 then
  87.     set the memberNum of sprite 6 to 29
  88.   else
  89.     set the memberNum of sprite 6 to 28
  90.   end if
  91. end
  92.