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

  1. on moveh1
  2.   global gtime1
  3.   carh()
  4.   if (gtime1 mod 4) = 0 then
  5.     monkeyh()
  6.   end if
  7.   if (gtime1 mod 24) = 0 then
  8.     giraffeh()
  9.   end if
  10. end
  11.  
  12. on monkeyh
  13.   global gwlist1
  14.   setAt(gwlist1, 3, getAt(gwlist1, 3) * -1)
  15.   if getAt(gwlist1, 3) = 1 then
  16.     set the memberNum of sprite 18 to 171
  17.   else
  18.     set the memberNum of sprite 18 to 181
  19.   end if
  20. end
  21.  
  22. on giraffeh
  23.   global gwlist1
  24.   setAt(gwlist1, 4, getAt(gwlist1, 4) * -1)
  25.   if getAt(gwlist1, 4) = 1 then
  26.     set the memberNum of sprite 19 to 172
  27.   else
  28.     set the memberNum of sprite 19 to 182
  29.   end if
  30. end
  31.  
  32. on carh
  33.   global gwlist1
  34.   set num to getAt(gwlist1, 5)
  35.   if num = 188 then
  36.     set num to 1
  37.   else
  38.     set num to num + 1
  39.   end if
  40.   setAt(gwlist1, 5, num)
  41.   if num = 1 then
  42.     set the memberNum of sprite 20 to 173
  43.     set the memberNum of sprite 21 to 174
  44.   else
  45.     if num < 86 then
  46.       set the locH of sprite 20 to 577 - (num * 6)
  47.       set the locH of sprite 21 to 61 + (num * 6)
  48.     else
  49.       if num = 95 then
  50.         set the memberNum of sprite 20 to 174
  51.         set the memberNum of sprite 21 to 173
  52.       else
  53.         if (num > 95) and (num < 180) then
  54.           set the locH of sprite 20 to 67 + ((num - 95) * 6)
  55.           set the locH of sprite 21 to 571 - ((num - 95) * 6)
  56.         end if
  57.       end if
  58.     end if
  59.   end if
  60. end
  61.