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

  1. on moveh3
  2.   global gtime1
  3.   taxih()
  4.   if (gtime1 mod 4) = 0 then
  5.     birdh()
  6.   end if
  7.   if (gtime1 mod 3) = 0 then
  8.     lionh()
  9.   end if
  10. end
  11.  
  12. on birdh
  13.   global gwlist1
  14.   if getAt(gwlist1, 3) = 3 then
  15.     setAt(gwlist1, 3, 1)
  16.   else
  17.     setAt(gwlist1, 3, getAt(gwlist1, 3) + 1)
  18.   end if
  19.   if getAt(gwlist1, 3) = 1 then
  20.     set the memberNum of sprite 18 to 231
  21.   else
  22.     if getAt(gwlist1, 3) = 3 then
  23.       set the memberNum of sprite 18 to 241
  24.     end if
  25.   end if
  26. end
  27.  
  28. on lionh
  29.   global gwlist1
  30.   set num to getAt(gwlist1, 4)
  31.   if num = 13 then
  32.     set num to 1
  33.   else
  34.     set num to num + 1
  35.   end if
  36.   setAt(gwlist1, 4, num)
  37.   if num = 1 then
  38.     set the memberNum of sprite 19 to 232
  39.   else
  40.     if num < 5 then
  41.       set the locV of sprite 19 to 119 - (10 * num)
  42.     else
  43.       if num = 6 then
  44.         set the memberNum of sprite 19 to 242
  45.       else
  46.         if (num = 9) or (num = 10) then
  47.           set the locV of sprite 19 to 79 + (10 * (num - 8))
  48.         else
  49.           if num = 11 then
  50.             set the locV of sprite 19 to 114
  51.           end if
  52.         end if
  53.       end if
  54.     end if
  55.   end if
  56. end
  57.  
  58. on taxih
  59.   global gwlist1
  60.   set num to getAt(gwlist1, 5)
  61.   if num = 182 then
  62.     set num to 1
  63.   else
  64.     set num to num + 1
  65.   end if
  66.   setAt(gwlist1, 5, num)
  67.   if num = 1 then
  68.     set the memberNum of sprite 20 to 233
  69.     set the memberNum of sprite 21 to 234
  70.   else
  71.     if num < 83 then
  72.       set the locH of sprite 20 to 554 - (num * 6)
  73.       set the locH of sprite 21 to 152 + (num * 5)
  74.     else
  75.       if num = 92 then
  76.         set the memberNum of sprite 20 to 234
  77.         set the memberNum of sprite 21 to 233
  78.       else
  79.         if (num > 92) and (num < 174) then
  80.           set the locH of sprite 20 to 62 + ((num - 92) * 6)
  81.           set the locH of sprite 21 to 562 - ((num - 92) * 5)
  82.         end if
  83.       end if
  84.     end if
  85.   end if
  86. end
  87.