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

  1. on moveh4
  2.   global gtime1
  3.   bush()
  4.   if (gtime1 mod 4) = 0 then
  5.     elephanth()
  6.   end if
  7. end
  8.  
  9. on elephanth
  10.   global gwlist1
  11.   setAt(gwlist1, 3, getAt(gwlist1, 3) * -1)
  12.   if getAt(gwlist1, 3) = 1 then
  13.     set the memberNum of sprite 18 to 261
  14.   else
  15.     set the memberNum of sprite 18 to 271
  16.   end if
  17. end
  18.  
  19. on bush
  20.   global gwlist1
  21.   set num to getAt(gwlist1, 4)
  22.   if num = 170 then
  23.     set num to 1
  24.   else
  25.     set num to num + 1
  26.   end if
  27.   setAt(gwlist1, 4, num)
  28.   if num = 1 then
  29.     set the memberNum of sprite 19 to 262
  30.     set the memberNum of sprite 20 to 263
  31.   else
  32.     if num < 77 then
  33.       set the locH of sprite 19 to 569 - (num * 6)
  34.       set the locH of sprite 20 to 179 + (num * 5)
  35.     else
  36.       if num = 86 then
  37.         set the memberNum of sprite 19 to 263
  38.         set the memberNum of sprite 20 to 262
  39.       else
  40.         if (num > 86) and (num < 162) then
  41.           set the locH of sprite 19 to 113 + ((num - 86) * 6)
  42.           set the locH of sprite 20 to 559 - ((num - 86) * 5)
  43.         end if
  44.       end if
  45.     end if
  46.   end if
  47. end
  48.