<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>sBladeBot</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>0</persistent>
  <parentName>oEnemy</parentName>
  <maskName>&lt;undefined&gt;</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>event_inherited();
canbeX = 0;
myhealth = 140;
freezehp = 100;
//damage = 60;
damage = global.mod_bladebotDamage;
//damage = 1;
stuntime = 4;
hpush = 6;
vpush = -3;
hitmissileexpl = 1;
hitsound = sndRobotHit1;
deathsound = sndRobotExpl;
canfreeze = 1;
platyoffset = -6;
frozenspr = sBladeBotFrozen;
flipx = 1;
target = 0;
state = 0;
statetime = 0;
hitemp = 1;
empspr = sBladeBot;
facing = 1;
turnedges = 1;
direction = 0;
speed = 4;
alarm[0] = 1;
col_edge = 0;
ispeed = image_speed;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (facing == -1) direction = 180;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>event_inherited();
if (frozen == 0){ 
    image_speed = ispeed;
    speed = 4;
    if (state == 0) {
        col_edge = 0;
        if (direction == 0) {
            if (collision_line(x + 8, y - 4, x + 8, y + 4, oSolid, true, true)) {
                if (facing == 1) {
                    direction = 270;
                } else direction = 90;
                x = xprevious;
                y = yprevious;
            } else if (turnedges) {
                if (facing == 1) {
                    if (!collision_line(x - 8, y + 12, x + 8, y + 12, oSolid, true, true)) direction = 270;
                } else if (!collision_line(x - 8, y - 12, x + 8, y - 12, oSolid, true, true)) direction = 90;
            }
        } else if (direction == 90) {
            if (collision_line(x - 4, y - 8, x + 4, y - 8, oSolid, true, true)) {
                if (facing == 1) {
                    direction = 0;
                } else direction = 180;
                x = xprevious;
                y = yprevious;
            } else if (turnedges) {
                if (facing == 1) {
                    if (!collision_line(x + 12, y - 8, x + 12, y + 8, oSolid, true, true)) direction = 0;
                } else if (!collision_line(x - 12, y - 8, x - 12, y + 8, oSolid, true, true)) direction = 180;
            }
        } else if (direction == 180) {
            if (collision_line(x - 8, y - 4, x - 8, y + 4, oSolid, true, true)) {
                if (facing == 1) {
                    direction = 90;
                } else direction = 270;
                x = xprevious;
                y = yprevious;
            } else if (turnedges) {
                if (facing == 1) {
                    if (!collision_line(x - 8, y - 12, x + 8, y - 12, oSolid, true, true)) direction = 90;
                } else if (!collision_line(x - 8, y + 12, x + 8, y + 12, oSolid, true, true)) direction = 270;
            }
        } else if (direction == 270) {
            if (collision_line(x - 4, y + 8, x + 4, y + 8, oSolid, true, true)) {
                if (facing == 1) {
                    direction = 180;
                } else direction = 0;
                x = xprevious;
                y = yprevious;
            } else if (turnedges) {
                if (facing == 1) {
                    if (!collision_line(x - 12, y - 8, x - 12, y + 8, oSolid, true, true)) direction = 180;
                } else if (!collision_line(x + 12, y - 8, x + 12, y + 8, oSolid, true, true)) direction = 0;
            }
        } // if (direction == 0) else
        if (turnedges &amp;&amp; !collision_rectangle(x - 12, y - 12, x + 12, y + 12, oSolid, true, true)) turnedges = 0;
        if (facing != 1) image_xscale = -1;
        image_angle -= 20;
        if (image_angle &lt; -360) image_angle += 360;
    } // if (state == 0)
    if (state == 100) {
        enemy_death2();
        repeat (20) instance_create(x, y, oDebris);
    }
} else speed = 0;
/*
if (state == 0) {
    col_edge = 0;
    if (direction == 0) {
        if (collision_line(x + 8, y - 4, x + 8, y + 4, oSolid, true, true)) {
            if (facing == 1) {
                direction = 270;
            } else direction = 90;
            x = xprevious;
            y = yprevious;
        } else if (turnedges) {
            if (facing == 1) {
                if (!collision_line(x - 8, y + 12, x + 8, y + 12, oSolid, true, true)) direction = 270;
            } else if (!collision_line(x - 8, y - 12, x + 8, y - 12, oSolid, true, true)) direction = 90;
        }
    } else if (direction == 90) {
        if (collision_line(x - 4, y - 8, x + 4, y - 8, oSolid, true, true)) {
            if (facing == 1) {
                direction = 0;
            } else direction = 180;
            x = xprevious;
            y = yprevious;
        } else if (turnedges) {
            if (facing == 1) {
                if (!collision_line(x + 12, y - 8, x + 12, y + 8, oSolid, true, true)) direction = 0;
            } else if (!collision_line(x - 12, y - 8, x - 12, y + 8, oSolid, true, true)) direction = 180;
        }
    } else if (direction == 180) {
        if (collision_line(x - 8, y - 4, x - 8, y + 4, oSolid, true, true)) {
            if (facing == 1) {
                direction = 90;
            } else direction = 270;
            x = xprevious;
            y = yprevious;
        } else if (turnedges) {
            if (facing == 1) {
                if (!collision_line(x - 8, y - 12, x + 8, y - 12, oSolid, true, true)) direction = 90;
            } else if (!collision_line(x - 8, y + 12, x + 8, y + 12, oSolid, true, true)) direction = 270;
        }
    } else if (direction == 270) {
        if (collision_line(x - 4, y + 8, x + 4, y + 8, oSolid, true, true)) {
            if (facing == 1) {
                direction = 180;
            } else direction = 0;
            x = xprevious;
            y = yprevious;
        } else if (turnedges) {
            if (facing == 1) {
                if (!collision_line(x - 12, y - 8, x - 12, y + 8, oSolid, true, true)) direction = 180;
            } else if (!collision_line(x + 12, y - 8, x + 12, y + 8, oSolid, true, true)) direction = 0;
        }
    } // if (direction == 0) else
    if (turnedges &amp;&amp; !collision_rectangle(x - 12, y - 12, x + 12, y + 12, oSolid, true, true)) turnedges = 0;
    if (facing != 1) image_xscale = -1;
    image_angle -= 20;
    if (image_angle &lt; -360) image_angle += 360;
} // if (state == 0)
if (state == 100) {
    enemy_death2();
    repeat (20) instance_create(x, y, oDebris);
}
*/
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>instance_destroy();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>event_inherited();
if(frozen == 0) draw_sprite(sBladeBotEye, -1, x, y);
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>-1</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
