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.
243 lines
7.0 KiB
243 lines
7.0 KiB
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
|
<object>
|
|
<spriteName>sBomb</spriteName>
|
|
<solid>0</solid>
|
|
<visible>-1</visible>
|
|
<depth>-11</depth>
|
|
<persistent>0</persistent>
|
|
<parentName><undefined></parentName>
|
|
<maskName><undefined></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>image_single = 0;
|
|
image_alpha = 0.5;
|
|
pwr = 0;
|
|
sfx_play(sndBombComboStart);
|
|
</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>x = oCharacter.x; //- 1;
|
|
y = oCharacter.y - 9; // - 10;
|
|
pwr += 0.03;
|
|
if (oControl.kFire == 0 || oCharacter.unmorphing == 1 || oCharacter.state == 32 || pwr >= 1) event_user(0);
|
|
</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>i = 0;
|
|
if (oControl.kDown == 0 && oControl.kLeft == 0 && oControl.kRight == 0) {
|
|
repeat (5) {
|
|
bmb = instance_create(x, y, oBomb2);
|
|
bmb.speed = 1 + 3 * pwr;
|
|
bmb.gravity = 0.2;
|
|
if (i == 0) {
|
|
bmb.direction = 90;
|
|
bmb.alarm[0] = 90;
|
|
}
|
|
if (i == 1) {
|
|
bmb.direction = 70;
|
|
bmb.alarm[0] = 80;
|
|
}
|
|
if (i == 2) {
|
|
bmb.direction = 30;
|
|
bmb.alarm[0] = 70;
|
|
}
|
|
if (i == 3) {
|
|
bmb.direction = 110;
|
|
bmb.alarm[0] = 80;
|
|
}
|
|
if (i == 4) {
|
|
bmb.direction = 150;
|
|
bmb.alarm[0] = 70;
|
|
}
|
|
i += 1;
|
|
} // repeat (5)
|
|
} // if (oControl.kDown == 0 && oControl.kLeft == 0 && oControl.kRight == 0)
|
|
if (oControl.kRight > 0) {
|
|
repeat (5) {
|
|
bmb = instance_create(x, y, oBomb2);
|
|
bmb.speed = 2 + 3 * pwr;
|
|
bmb.gravity = 0.2;
|
|
if (i == 0) {
|
|
bmb.direction = 18;
|
|
bmb.alarm[0] = 120;
|
|
}
|
|
if (i == 1) {
|
|
bmb.direction = 36;
|
|
bmb.alarm[0] = 110;
|
|
}
|
|
if (i == 2) {
|
|
bmb.direction = 54;
|
|
bmb.alarm[0] = 100;
|
|
}
|
|
if (i == 3) {
|
|
bmb.direction = 72;
|
|
bmb.alarm[0] = 90;
|
|
}
|
|
if (i == 4) {
|
|
bmb.direction = 90;
|
|
bmb.alarm[0] = 80;
|
|
}
|
|
i += 1;
|
|
} // repeat (5)
|
|
} // if (oControl.kRight > 0)
|
|
if (oControl.kLeft > 0) {
|
|
repeat (5) {
|
|
bmb = instance_create(x, y, oBomb2);
|
|
bmb.speed = 2 + 3 * pwr;
|
|
bmb.gravity = 0.2;
|
|
if (i == 0) {
|
|
bmb.direction = 90;
|
|
bmb.alarm[0] = 80;
|
|
}
|
|
if (i == 1) {
|
|
bmb.direction = 108;
|
|
bmb.alarm[0] = 90;
|
|
}
|
|
if (i == 2) {
|
|
bmb.direction = 126;
|
|
bmb.alarm[0] = 100;
|
|
}
|
|
if (i == 3) {
|
|
bmb.direction = 144;
|
|
bmb.alarm[0] = 110;
|
|
}
|
|
if (i == 4) {
|
|
bmb.direction = 162;
|
|
bmb.alarm[0] = 120;
|
|
}
|
|
i += 1;
|
|
} // repeat (5)
|
|
} // if (oControl.kLeft > 0)
|
|
if (oCharacter.collision_bottom) {
|
|
if (oControl.kDown > 0 && oControl.kLeft == 0 && oControl.kRight == 0) {
|
|
repeat (5) {
|
|
bmb = instance_create(x, y - 5, oBomb2);
|
|
bmb.direction = 90;
|
|
bmb.gravity = 0.2;
|
|
if (i == 0) {
|
|
bmb.alarm[0] = 15;
|
|
bmb.speed = 2 * pwr;
|
|
}
|
|
if (i == 1) {
|
|
bmb.alarm[0] = 20;
|
|
bmb.speed = 1 + 2 * pwr;
|
|
}
|
|
if (i == 2) {
|
|
bmb.alarm[0] = 25;
|
|
bmb.speed = 2 + 2 * pwr;
|
|
}
|
|
if (i == 3) {
|
|
bmb.alarm[0] = 30;
|
|
bmb.speed = 3 + 2 * pwr;
|
|
}
|
|
if (i == 4) {
|
|
bmb.alarm[0] = 35;
|
|
bmb.speed = 4 + 2 * pwr;
|
|
}
|
|
i += 1;
|
|
} // repeat (5)
|
|
} // if (oControl.kDown > 0 && oControl.kLeft == 0 && oControl.kRight == 0)
|
|
} // if (oCharacter.collision_bottom)
|
|
if (!oCharacter.collision_bottom) {
|
|
if (oControl.kDown > 0 && oControl.kLeft == 0 && oControl.kRight == 0) {
|
|
instance_create(x, y, oBombExpl);
|
|
instance_create(x, y, oBomb);
|
|
repeat (3) {
|
|
bmb = instance_create(x, y, oBomb2);
|
|
bmb.speed = 4;
|
|
bmb.gravity = 0.2;
|
|
if (i == 0) {
|
|
bmb.direction = 90;
|
|
bmb.alarm[0] = 12;
|
|
}
|
|
if (i == 1) {
|
|
bmb.direction = 200;
|
|
bmb.alarm[1] = 9;
|
|
bmb.alarm[2] = 34;
|
|
}
|
|
if (i == 2) {
|
|
bmb.direction = 340;
|
|
bmb.alarm[1] = 9;
|
|
bmb.alarm[2] = 34;
|
|
}
|
|
i += 1;
|
|
}
|
|
}
|
|
} // if (!oCharacter.collision_bottom)
|
|
sfx_stop(sndBombComboStart);
|
|
sfx_play(sndBombCombo);
|
|
instance_destroy();
|
|
</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>
|