home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / frog_day.swf / scripts / DefineSprite_377 / frame_34 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2007-03-20  |  3.5 KB  |  161 lines

  1. if(M1 eq "U" and Dir eq "D" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
  2. {
  3.    NO = "1";
  4.    if(eval("b" add (Robo - "15")) == "1")
  5.    {
  6.       tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
  7.       {
  8.          gotoAndStop("U");
  9.          play();
  10.       }
  11.       tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
  12.       {
  13.          play();
  14.       }
  15.       set("b" add (Robo - "15"),"3");
  16.       set("b" add (Robo - "30"),"2");
  17.    }
  18.    tellTarget(Robo add "/icon")
  19.    {
  20.       gotoAndStop("180Bump");
  21.       play();
  22.    }
  23.    tellTarget("BRICK/" add (Robo - "15") add "/L")
  24.    {
  25.       gotoAndStop("U");
  26.       play();
  27.    }
  28.    Dir = "U";
  29. }
  30. else if(M1 eq "U" and Dir eq "D" and "1" < eval("a" add (Robo - "15")) and NO == "0")
  31. {
  32.    NO = "1";
  33.    tellTarget(Robo add "/icon")
  34.    {
  35.       gotoAndStop("180Turn");
  36.       play();
  37.    }
  38.    Robo -= "15";
  39.    Dir = "U";
  40. }
  41. if(M1 eq "U" and Dir eq "L" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
  42. {
  43.    NO = "1";
  44.    if(eval("b" add (Robo - "15")) == "1")
  45.    {
  46.       tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
  47.       {
  48.          gotoAndStop("U");
  49.          play();
  50.       }
  51.       tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
  52.       {
  53.          play();
  54.       }
  55.       set("b" add (Robo - "15"),"3");
  56.       set("b" add (Robo - "30"),"2");
  57.    }
  58.    tellTarget(Robo add "/icon")
  59.    {
  60.       gotoAndStop("TR_Bump");
  61.       play();
  62.    }
  63.    tellTarget("BRICK/" add (Robo - "15") add "/L")
  64.    {
  65.       gotoAndStop("U");
  66.       play();
  67.    }
  68.    Dir = "U";
  69. }
  70. else if(M1 eq "U" and Dir eq "L" and "1" < eval("a" add (Robo - "15")) and NO == "0")
  71. {
  72.    NO = "1";
  73.    tellTarget(Robo add "/icon")
  74.    {
  75.       gotoAndStop("TR");
  76.       play();
  77.    }
  78.    Robo -= "15";
  79.    Dir = "U";
  80. }
  81. if(M1 eq "U" and Dir eq "R" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
  82. {
  83.    NO = "1";
  84.    if(eval("b" add (Robo - "15")) == "1")
  85.    {
  86.       tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
  87.       {
  88.          gotoAndStop("U");
  89.          play();
  90.       }
  91.       tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
  92.       {
  93.          play();
  94.       }
  95.       set("b" add (Robo - "15"),"3");
  96.       set("b" add (Robo - "30"),"2");
  97.    }
  98.    tellTarget(Robo add "/icon")
  99.    {
  100.       gotoAndStop("TL_Bump");
  101.       play();
  102.    }
  103.    tellTarget("BRICK/" add (Robo - "15") add "/L")
  104.    {
  105.       gotoAndStop("U");
  106.       play();
  107.    }
  108.    Dir = "U";
  109. }
  110. else if(M1 eq "U" and Dir eq "R" and "1" < eval("a" add (Robo - "15")) and NO == "0")
  111. {
  112.    NO = "1";
  113.    tellTarget(Robo add "/icon")
  114.    {
  115.       gotoAndStop("TL");
  116.       play();
  117.    }
  118.    Robo -= "15";
  119.    Dir = "U";
  120. }
  121. if(M1 eq "U" and Dir eq "U" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
  122. {
  123.    NO = "1";
  124.    if(eval("b" add (Robo - "15")) == "1")
  125.    {
  126.       tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
  127.       {
  128.          gotoAndStop("U");
  129.          play();
  130.       }
  131.       tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
  132.       {
  133.          play();
  134.       }
  135.       set("b" add (Robo - "15"),"3");
  136.       set("b" add (Robo - "30"),"2");
  137.    }
  138.    tellTarget(Robo add "/icon")
  139.    {
  140.       gotoAndStop("Bump");
  141.       play();
  142.    }
  143.    tellTarget("BRICK/" add (Robo - "15") add "/L")
  144.    {
  145.       gotoAndStop("U");
  146.       play();
  147.    }
  148.    Dir = "U";
  149. }
  150. else if(M1 eq "U" and Dir eq "U" and "1" < eval("a" add (Robo - "15")) and NO == "0")
  151. {
  152.    NO = "1";
  153.    tellTarget(Robo add "/icon")
  154.    {
  155.       gotoAndStop("Move");
  156.       play();
  157.    }
  158.    Robo -= "15";
  159.    Dir = "U";
  160. }
  161.