<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>&lt;undefined&gt;</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>0</persistent>
  <parentName>&lt;undefined&gt;</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>water = 0
can_chase = 1

if distance_to_object(objOwEnemyBlink) &lt; 108 and !instance_exists(objBattleSwirl) {
    instance_destroy()
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="2">
      <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>collision_handle();
</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>depth = -y

water = position_meeting(x,y,objWater)

if global.boss { instance_destroy() }

if !ie(parDeactivator) and !global.cutscene and room != rmGameOver and (!objDebug.active or !objDebug.can_input) {
    if distance_to_object(objPlayer) &lt; 72 and (global.enemy[2] = 0 or global.enemy[3] = 0 or global.enemy[4] = 0 or global.enemy[5] = 0) and !objPlayer.invincible and can_chase and !global.disable_enemy_chasing {
        chasing = 1;
        move_towards_point(objPlayer.x,objPlayer.y,chasespd)
    } else {
        chasing = 0;
    }
} else {
    speed = 0
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="4" ename="objPlayer">
      <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 !other.invincible and !ie(parDeactivator) {
    if !instance_exists(objBattleSwirl) {
        global.theroom = room
        global.enemy[1] = idx
        global.en_count = 1
        check_backattacks()
        write_line("Enemy 1 is "+object_get_name(global.enemy[1]))
    } else {
        if global.enemy[2] = 0 {
            global.enemy[2] = idx
            global.en_count = 2
            write_line("Enemy 2 is "+object_get_name(global.enemy[2]))
        } else if global.enemy[3] = 0 {
            global.enemy[3] = idx
            global.en_count = 3
            write_line("Enemy 3 is "+object_get_name(global.enemy[3]))
        } else if global.enemy[4] = 0 {
            global.enemy[4] = idx
            global.en_count = 4
            write_line("Enemy 4 is "+object_get_name(global.enemy[4]))
        } else if global.enemy[5] = 0 {
            global.enemy[5] = idx
            global.en_count = 5
            write_line("Enemy 5 is "+object_get_name(global.enemy[5]))
        }
        with objBattleSwirl { event_user(0) }
    }
    var a;
    a = instance_create(x,y,objOwEnemyBlink)
    a.depth = depth
    a.sprite_index = sprite_index
    a.image_speed = image_speed
    a.image_xscale = image_xscale
    a.image_blend = image_blend
    instance_destroy()
    exit
}
</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>if x&lt;0
x+=room_width
if x&gt;room_width
x-=room_width

if y&lt;0
y+=room_height
if y&gt;room_height
y-=room_height
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>604</id>
        <kind>0</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>0</useapplyto>
        <exetype>1</exetype>
        <functionname>action_inherited</functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
      </action>
      <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>draw_set_alpha(1)
if !water {
    draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,image_blend,image_alpha)
} else {
    draw_sprite_part_ext(sprite_index,image_index,0,0,sprite_width,2*sprite_height/3,x-sprite_get_xoffset(sprite_index),y-2*sprite_height/3,image_xscale,image_yscale,image_blend,image_alpha)
    if sprite_width &gt; 17 {
        draw_sprite_stretched(sprWaterRipple,image_index,x-16,y-8,32,16)
    } else {
        draw_sprite(sprWaterRipple,image_index,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>0</PhysicsObjectKinematic>
  <PhysicsShapePoints>
    <point>8,8</point>
    <point>8,8</point>
  </PhysicsShapePoints>
</object>
