home *** CD-ROM | disk | FTP | other *** search
- if(M1 eq "U" and Dir eq "D" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- if(eval("b" add (Robo - "15")) == "1")
- {
- tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
- {
- gotoAndStop("U");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
- {
- play();
- }
- set("b" add (Robo - "15"),"3");
- set("b" add (Robo - "30"),"2");
- }
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("180Bump");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L")
- {
- gotoAndStop("U");
- play();
- }
- Dir = "U";
- }
- else if(M1 eq "U" and Dir eq "D" and "1" < eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("180Turn");
- play();
- }
- Robo -= "15";
- Dir = "U";
- }
- if(M1 eq "U" and Dir eq "L" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- if(eval("b" add (Robo - "15")) == "1")
- {
- tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
- {
- gotoAndStop("U");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
- {
- play();
- }
- set("b" add (Robo - "15"),"3");
- set("b" add (Robo - "30"),"2");
- }
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("TR_Bump");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L")
- {
- gotoAndStop("U");
- play();
- }
- Dir = "U";
- }
- else if(M1 eq "U" and Dir eq "L" and "1" < eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("TR");
- play();
- }
- Robo -= "15";
- Dir = "U";
- }
- if(M1 eq "U" and Dir eq "R" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- if(eval("b" add (Robo - "15")) == "1")
- {
- tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
- {
- gotoAndStop("U");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
- {
- play();
- }
- set("b" add (Robo - "15"),"3");
- set("b" add (Robo - "30"),"2");
- }
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("TL_Bump");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L")
- {
- gotoAndStop("U");
- play();
- }
- Dir = "U";
- }
- else if(M1 eq "U" and Dir eq "R" and "1" < eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("TL");
- play();
- }
- Robo -= "15";
- Dir = "U";
- }
- if(M1 eq "U" and Dir eq "U" and "1" >= eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- if(eval("b" add (Robo - "15")) == "1")
- {
- tellTarget("BRICK/" add (Robo - "15") add "/Fruit")
- {
- gotoAndStop("U");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L/LIGHT/anim")
- {
- play();
- }
- set("b" add (Robo - "15"),"3");
- set("b" add (Robo - "30"),"2");
- }
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("Bump");
- play();
- }
- tellTarget("BRICK/" add (Robo - "15") add "/L")
- {
- gotoAndStop("U");
- play();
- }
- Dir = "U";
- }
- else if(M1 eq "U" and Dir eq "U" and "1" < eval("a" add (Robo - "15")) and NO == "0")
- {
- NO = "1";
- tellTarget(Robo add "/icon")
- {
- gotoAndStop("Move");
- play();
- }
- Robo -= "15";
- Dir = "U";
- }
-