You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/objects/oMZeta_Cocoon.object.gmx

312 lines
8.4 KiB

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sMZeta_Cocoon_Base</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-10</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>alarm[0] = 1;
shaking = 0;
state = 0;
statetime = 0;
facing = -1;
piece0x = -21;
piece0y = -4;
piece0a = 0;
xoff0 = 0;
yoff0 = 0;
piece1x = -14;
piece1y = -7;
piece1a = 0;
xoff1 = 0;
yoff1 = 0;
piece2x = -10;
piece2y = -6;
piece2a = 0;
xoff2 = 0;
yoff2 = 0;
piece3x = -1;
piece3y = -6;
piece3a = 0;
xoff3 = 0;
yoff3 = 0;
piece4x = 20;
piece4y = -11;
piece4a = 0;
xoff4 = 0;
yoff4 = 0;
idle = 0;
</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 (global.metdead[myid] &gt; 0) {
//instance_destroy();
//idle = 1;
state = 3;
exit;
}
if (global.event[205] &gt; 0) event_user(1);
</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>if (state == 0) { }
if (state == 1) {
if (statetime == 0) mus_current_fadeout();
if (statetime == 90) {
shaking = 20;
sfx_play(sndMZetaCocoon1);
}
if (statetime == 180) {
shaking = 25;
sfx_play(sndMZetaCocoon2);
}
if (statetime == 300) {
state = 2;
statetime = 0;
event_user(0);
sfx_play(sndMZetaCocoon3);
bld = instance_create(x, y - 24, oFXAnimSpark);
bld.sprite_index = sMGammaBlood1;
bld.image_speed = 0.5;
bld.image_alpha = 0.6;
bld = instance_create(x - 10, y - 18, oFXAnimSpark);
bld.sprite_index = sMGammaBlood1;
bld.image_speed = 0.4;
bld.image_alpha = 0.6;
bld.image_angle = 60;
bld = instance_create(x + 12, y - 20, oFXAnimSpark);
bld.sprite_index = sMGammaBlood1;
bld.image_speed = 0.45;
bld.image_alpha = 0.6;
bld.image_angle = -60;
}
} // if (state == 1)
if (state == 2) {
piece0x = lerp(piece0x, -30, 0.2);
piece0y = lerp(piece0y, -6, 0.2);
piece0a = lerp(piece0a, 81, 0.05);
piece1x = lerp(piece1x, -14, 0.2);
piece1y = lerp(piece1y, 0, 0.2);
piece1a = lerp(piece1a, 36, 0.1);
piece2x = lerp(piece2x, -3, 0.2);
piece2y = lerp(piece2y, 4, 0.2);
piece2a = lerp(piece2a, 64, 0.15);
piece3x = lerp(piece3x, 5, 0.2);
piece3y = lerp(piece3y, -4, 0.2);
piece3a = lerp(piece3a, -40, 0.1);
piece4x = lerp(piece4x, 24, 0.2);
piece4y = lerp(piece4y, -10, 0.2);
piece4a = lerp(piece4a, -69, 0.05);
}
if (state == 3) {
piece0x = -30;
piece0y = -6;
piece0a = 81;
piece1x = -14;
piece1y = 0;
piece1a = 36;
piece2x = -3;
piece2y = 4;
piece2a = 64;
piece3x = 5;
piece3y = -4;
piece3a = -40;
piece4x = 24;
piece4y = -10;
piece4a = -69;
}
if (shaking &gt; 0) {
xoff0 = choose(-1, 0, 1);
yoff0 = choose(-1, 0, 1);
xoff1 = choose(-1, 0, 1);
yoff1 = choose(-1, 0, 1);
xoff2 = choose(-1, 0, 1);
yoff2 = choose(-1, 0, 1);
xoff3 = choose(-1, 0, 1);
yoff3 = choose(-1, 0, 1);
xoff4 = choose(-1, 0, 1);
yoff4 = choose(-1, 0, 1);
} else {
xoff0 = 0;
yoff0 = 0;
xoff1 = 0;
yoff1 = 0;
xoff2 = 0;
yoff2 = 0;
xoff3 = 0;
yoff3 = 0;
xoff4 = 0;
yoff4 = 0;
}
if (statetime &lt; 900) {
statetime += 1;
}
if (shaking &gt; 0) shaking -= 1;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="11">
<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>mtr = instance_create(x, y - 42, oMZeta);
mtr.facing = facing;
mtr.state = 0;
mtr.myid = myid;
mtr.limit_left = limit_left;
mtr.limit_right = limit_right;
state = 3;
//idle = 1;
//instance_destroy();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="10">
<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>mtr = instance_create(x - 16 * facing, y - 24, oMZeta);
mtr.facing = facing;
mtr.state = 50;
mtr.myid = myid;
mtr.limit_left = limit_left;
mtr.limit_right = limit_right;
mtr.visible = false;
mtr.alarm[2] = 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>draw_sprite_ext(sMZeta_Cocoon0, -1, x + (piece0x + xoff0) * facing, y + piece0y + yoff0, facing, 1, piece0a * facing, -1, 1);
draw_sprite_ext(sMZeta_Cocoon1, -1, x + (piece1x + xoff1) * facing, y + piece1y + yoff1, facing, 1, piece1a * facing, -1, 1);
draw_sprite_ext(sMZeta_Cocoon2, -1, x + (piece2x + xoff2) * facing, y + piece2y + yoff2, facing, 1, piece2a * facing, -1, 1);
draw_sprite_ext(sMZeta_Cocoon3, -1, x + (piece3x + xoff3) * facing, y + piece3y + yoff3, facing, 1, piece3a * facing, -1, 1);
draw_sprite_ext(sMZeta_Cocoon4, -1, x + (piece4x + xoff4) * facing, y + piece4y + yoff4, facing, 1, piece4a * facing, -1, 1);
draw_sprite_ext(sMZeta_Cocoon_Base, -1, x, y, 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>