<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>sTorizoWingsB</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>2</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>spr_set = 0;
image_speed = 0;
image_index = 0;
state = 0;
statetime = 0;
offset0 = 8;
offset1 = 9;
offset2 = 11;
tf = 0;
jetfade = 0.2;
</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>spr_set = floor(oTorizo2.image_index);
if (oTorizo2.state == 5) spr_set = -1;
if (oTorizo2.state == 2) spr_set = 0;
tf = oTorizo2.facing;
jetfade = max(0.05, 0.2 + oTorizo2.vspeed / 20);
if (state == 0) {
    if (statetime == 120) sfx_play(sndTorizoWingsDeploy);
    if (statetime &gt; 120) {
        if (image_index &lt; 6) image_index += 0.2;
    }
    if (statetime == 200) {
        state = 1;
        sfx_play(sndTorizoWingsActivate);
    }
}
if (state == 1) {
    if (spr_set == 2) {
        jet = instance_create(x + offset2 + 7, y + 4, oTorizoJetFX);
        jet.fadespeed = jetfade;
        jet = instance_create(x + offset2 + 21, y - 4, oTorizoJetFX);
        jet.fadespeed = jetfade;
        jet = instance_create(x + offset2 + 35, y - 11, oTorizoJetFX);
        jet.fadespeed = jetfade;
        jet = instance_create(x - offset2 - 7, y + 4, oTorizoJetFX);
        jet.fadespeed = jetfade;
        jet = instance_create(x - offset2 - 21, y - 4, oTorizoJetFX);
        jet.fadespeed = jetfade;
        jet = instance_create(x - offset2 - 35, y - 11, oTorizoJetFX);
        jet.fadespeed = jetfade;
    }
    if (spr_set == 1) {
        jet = instance_create(x + (offset1 + 5) * tf, y + 4, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
        jet = instance_create(x + (offset1 + 14) * tf, y - 4, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
        jet = instance_create(x + (offset1 + 23) * tf, y - 8, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
        jet = instance_create(x - (offset1 + 7) * tf, y + 4, oTorizoJetFX);
        jet.image_xscale = 0.8;
        jet.fadespeed = jetfade;
        jet = instance_create(x - (offset1 + 18) * tf, y - 4, oTorizoJetFX);
        jet.image_xscale = 0.8;
        jet.fadespeed = jetfade;
        jet = instance_create(x - (offset1 + 30) * tf, y - 8, oTorizoJetFX);
        jet.image_xscale = 0.8;
        jet.fadespeed = jetfade;
    }
    if (spr_set == 0) {
        jet = instance_create(x - (offset0 + 5) * tf, y + 4, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
        jet = instance_create(x - (offset0 + 14) * tf, y - 4, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
        jet = instance_create(x - (offset0 + 23) * tf, y - 8, oTorizoJetFX);
        jet.image_xscale = 0.5;
        jet.fadespeed = jetfade;
    }
} // if (state == 1)
statetime += 1;
</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>if (state == 0) {
    draw_sprite_ext(sTorizoWingsC, image_index, x + offset1 * tf, y, 1 * oTorizo2.facing, 1, 0, -1, 1);
    draw_sprite_ext(sTorizoWingsB, image_index, x - offset1 * tf, y, -1 * oTorizo2.facing, 1, 0, -1, 1);
}
if (state == 1) {
    if (spr_set == 2) {
        draw_sprite(sTorizoWingsA, 0, x + offset2, y);
        draw_sprite_ext(sTorizoWingsA, 0, x - offset2, y, -1, 1, 0, -1, 1);
    }
    if (spr_set == 1) {
        draw_sprite_ext(sTorizoWingsC, 6, x + offset1 * tf, y, 1 * oTorizo2.facing, 1, 0, -1, 1);
        draw_sprite_ext(sTorizoWingsB, 6, x - offset1 * tf, y, -1 * oTorizo2.facing, 1, 0, -1, 1);
    }
    if (spr_set == 0) draw_sprite_ext(sTorizoWingsC, 6, x - offset0 * tf, y, -1 * oTorizo2.facing, 1, 0, -1, 1);
}
</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>
