Files
AM2R-Community-Updates/objects/oBoss1Block2.object.gmx
2020-12-22 20:54:55 -06:00

255 lines
7.0 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sBoss1Block</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-90</depth>
<persistent>0</persistent>
<parentName>oMovingSolid</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>image_yscale = 5;
makeActive();
alarm[0] = 120;
alarm[1] = 120;
alarm[2] = 60;
moving = 0;
facing = 0;
spikeoffset = 18;
spike = instance_create(x, y - 80, oSpikes1);
spike.image_yscale = 5;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="1" 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>with (spike) instance_destroy();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="3">
<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>block = instance_create(x, y, oBoss1Block3);
block.facing = facing;
instance_destroy();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" 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>if (spikeoffset &gt; 0) {
spikeoffset -= 1;
alarm[2] = 2;
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="1">
<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>smk = instance_create(x - 16 + random(32), y, oFXAnimSpark);
smk.image_speed = 0.5;
smk.additive = 0;
smk.sprite_index = sSmoke1;
smk.image_alpha = 0.6;
smk.depth = -95;
if (oBoss1Head.myhealth &gt; 0) alarm[1] = 5;
</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 (oBoss1Head.myhealth &gt; 0) alarm[0] = 30;
moving = 5;
</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 (facing == 1) spike.x = x + 18 - spikeoffset;
if (facing == -1) spike.x = x - 34 + spikeoffset;
if (moving) {
xVel = facing * 0.1;
} else xVel = 0;
if (moving &gt; 0) moving -= 1;
if (oBoss1Head.myhealth &lt;= 0) {
xVel = 0;
if (spikeoffset &lt; 26) spikeoffset += 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 (facing == 1) {
i = 1;
repeat (10) {
draw_sprite_ext(sBoss1Spike, -1, x + 18 - spikeoffset, y - 8 * i, 1, 1, 0, -1, 1);
i += 1;
}
}
if (facing == -1) {
i = 1;
repeat (10) {
draw_sprite_ext(sBoss1Spike, -1, x - 18 + spikeoffset, y - 8 * i, -1, 1, 0, -1, 1);
i += 1;
}
}
draw_sprite_ext(sprite_index, -1, x, y, facing, 1, 0, -1, 1);
draw_sprite_ext(sprite_index, -1, x, y - 32, facing, 1, 0, -1, 1);
draw_sprite_ext(sprite_index, -1, x, y - 64, 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>0</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>