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

  1. on exitFrame
  2.   global gscr, gnum1, ghislist, ghdlist
  3.   append(ghislist, gnum1)
  4.   if the locV of sprite 44 <> 383 then
  5.     repeat with n = 44 to 46
  6.       set the locV of sprite n to 383
  7.     end repeat
  8.   end if
  9.   repeat with n = 39 to 42
  10.     set the locV of sprite n to 105
  11.   end repeat
  12.   if gnum1 < 0 then
  13.     set var to -1
  14.   else
  15.     set var to 1
  16.   end if
  17.   set num to abs(gnum1) - 1
  18.   repeat with n = num down to 0
  19.     set gscr to gscr + (var * 1)
  20.     counth(gscr, 38, 261)
  21.     counth(var * n, 42, 281)
  22.     updateStage()
  23.   end repeat
  24.   sound stop 1
  25.   set ghdlist to [50, 20, 15, 12, 10, 7, 5, 2, 1, 5]
  26.   repeat with n = 9 to 11
  27.     puppetSprite(n, 0)
  28.   end repeat
  29.   repeat with n = 2 to 4
  30.     puppetSprite(n, 0)
  31.   end repeat
  32.   startTimer()
  33.   repeat while the timer < 30
  34.     nothing()
  35.   end repeat
  36. end
  37.  
  38. on counth pts, sp, ca
  39.   if pts > 9999 then
  40.     set pts to 9999
  41.   else
  42.     if pts < -999 then
  43.       set pts to -999
  44.     end if
  45.   end if
  46.   set num to abs(pts)
  47.   set b1 to num / 1000
  48.   set num to num - (b1 * 1000)
  49.   set b2 to num / 100
  50.   set num to num - (b2 * 100)
  51.   set b3 to num / 10
  52.   set b4 to num - (b3 * 10)
  53.   repeat with n = 1 to 4
  54.     do("put b" & string(n) & " into num")
  55.     if num <> 0 then
  56.       exit repeat
  57.       next repeat
  58.     end if
  59.     set the castNum of sprite (n + sp) to ca + 11
  60.   end repeat
  61.   if n = 5 then
  62.     set n to 4
  63.   end if
  64.   repeat with m = n to 4
  65.     do("set the castNum of sprite (m+sp) to (ca + b" & string(m) & ")")
  66.   end repeat
  67.   if pts < 0 then
  68.     set the castNum of sprite (sp + 1) to ca + 10
  69.   end if
  70. end
  71.