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/oQueenFireball.object.gmx

346 lines
9.4 KiB

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sQueenFireball</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>targetx = x + 10;
targety = y;
direction = point_direction(x, y, targetx, targety) - 10;
speed = 0;
image_xscale = 0.5;
image_yscale = 0.5;
//damage = 250;
damage = global.mod_queenDfireball;
active = 1;
</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>switch (oQueen.phase) {
case 0: event_user(1); break;
case 1: event_user(2); break;
case 2: event_user(3); break;
case 3: event_user(4); break;
}
instance_destroy();
</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 (speed &lt; 8) speed += 0.5;
image_angle -= 20;
expl = make_explosion1(random_range(x - 10, x + 10), random_range(y - 20, y + 20));
expl.depth = 10;
expl.speed = 1;
if (image_xscale &lt; 1) image_xscale += 0.05;
if (image_yscale &lt; 1) image_yscale += 0.05;
vspeed -= 0.01;
fx = instance_create(x, y, oFXTrail);
fx.sprite_index = sQueenFireball;
fx.image_xscale = image_xscale;
fx.image_yscale = image_yscale;
fx.additive = 1;
fx.fadespeed = 0.1;
fx.image_angle = image_angle;
fx.depth = 10;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oCharacter">
<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 (oCharacter.onfire == 0) {
damage_player_push(damage, 1, 90, 0, 4);
oCharacter.onfire = 60;
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oSolid1">
<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 (active) {
alarm[0] = 3;
active = 0;
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="14">
<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>with (inst_146527) instance_destroy();
tile_layer_delete(-104);
oQueen.phase = 4;
expl = instance_create(2240, 154, oExplosionSmoke);
expl.width = 64;
expl.height = 112;
expl.expl_dir = 180;
expl.expl_spd = 2;
expl.explosions = 10;
expl.smoke_steps = 60;
expl.density = 5;
repeat (50) {
deb = instance_create(2240, 154 + random_range(-64, 64), oDebris);
deb.alarm[0] = 60 + random(20);
deb.direction = random_range(150, 210);
deb.speed = 1 + random(6);
}
sfx_play(sndA4Expl);
screen_shake(30, 6);
instance_create(x, y, oScreenFlash);
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="13">
<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>with (inst_146526) instance_destroy();
with (inst_146514) instance_destroy();
tile_layer_delete(-103);
tile_layer_show(-98);
oQueen.phase = 3;
expl = instance_create(1920, 104, oExplosionSmoke);
expl.width = 64;
expl.height = 80;
expl.expl_dir = 180;
expl.expl_spd = 2;
expl.explosions = 10;
expl.smoke_steps = 60;
expl.density = 3;
repeat (20) {
deb = instance_create(1920, 120 + random_range(-20, 20), oDebris);
deb.alarm[0] = 60 + random(20);
deb.direction = random_range(150, 210);
deb.speed = 1 + random(6);
}
sfx_play(sndA4Expl);
screen_shake(30, 6);
instance_create(x, y, oScreenFlash);
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="12">
<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>with (inst_146525) instance_destroy();
with (inst_146520) instance_destroy();
tile_layer_delete(-102);
oQueen.phase = 2;
expl = instance_create(1280, 104, oExplosionSmoke);
expl.width = 64;
expl.height = 80;
expl.expl_dir = 180;
expl.expl_spd = 2;
expl.explosions = 10;
expl.smoke_steps = 60;
expl.density = 3;
repeat (20) {
deb = instance_create(1280, 104 + random_range(-20, 20), oDebris);
deb.alarm[0] = 60 + random(20);
deb.direction = random_range(150, 210);
deb.speed = 1 + random(6);
}
sfx_play(sndA4Expl);
screen_shake(30, 6);
instance_create(x, y, oScreenFlash);
</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>with (inst_146524) instance_destroy();
tile_layer_delete(-101);
oQueen.phase = 1;
expl = instance_create(960, 120, oExplosionSmoke);
expl.width = 64;
expl.height = 144;
expl.expl_dir = 180;
expl.expl_spd = 2;
expl.explosions = 10;
expl.smoke_steps = 60;
expl.density = 5;
repeat (50) {
deb = instance_create(960, 120 + random_range(-64, 64), oDebris);
deb.alarm[0] = 60 + random(20);
deb.direction = random_range(150, 210);
deb.speed = 1 + random(6);
}
sfx_play(sndA4Expl);
screen_shake(30, 6);
instance_create(x, y, oScreenFlash);
</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>