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

260 lines
7.2 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sMAlpha</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>facing = 1;
myid = 5;
if (global.metdead[5] == 1 || global.event[108] == 1) {
tile_layer_delete(-105);
instance_destroy();
exit;
}
image_xscale = facing;
active = 0;
</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 (oCharacter.x &lt; 512 &amp;&amp; active == 0) {
vspeed = -7;
hspeed = -4;
friction = 0.3;
active = 1;
global.event[108] = 1;
tile_layer_delete(-105);
sfx_play(sndBoss1Stomp);
repeat (8) {
mytrail = instance_create(440 + random(32), 176 + random(32), oFXTrail);
mytrail.sprite_index = sRockPieceA2;
mytrail.image_index = floor(random(6));
mytrail.image_alpha = 1;
mytrail.fadespeed = 0.005;
mytrail.additive = 0;
mytrail.vspeed = -3 - random(5);
mytrail.hspeed = -3 + random(4);
mytrail.gravity = 0.2;
mytrail.gravity_direction = 270;
mytrail.depth = -150;
}
mus_alpha_monster();
}
if (active == 1 &amp;&amp; speed &lt; 0.02) event_user(0);
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oMissile">
<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>//event_user(0);
if (active == 0) {
vspeed = -7;
hspeed = -4;
friction = 0.3;
active = 1;
global.event[108] = 1;
tile_layer_delete(-105);
sfx_play(sndBoss1Stomp);
repeat (8) {
mytrail = instance_create(440 + random(32), 176 + random(32), oFXTrail);
mytrail.sprite_index = sRockPieceA2;
mytrail.image_index = floor(random(6));
mytrail.image_alpha = 1;
mytrail.fadespeed = 0.005;
mytrail.additive = 0;
mytrail.vspeed = -3 - random(5);
mytrail.hspeed = -3 + random(4);
mytrail.gravity = 0.2;
mytrail.gravity_direction = 270;
mytrail.depth = -150;
}
mus_alpha_monster();
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oBeam">
<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>//event_user(0);
if (active == 0) {
vspeed = -7;
hspeed = -4;
friction = 0.3;
active = 1;
global.event[108] = 1;
tile_layer_delete(-105);
sfx_play(sndBoss1Stomp);
repeat (8) {
mytrail = instance_create(440 + random(32), 176 + random(32), oFXTrail);
mytrail.sprite_index = sRockPieceA2;
mytrail.image_index = floor(random(6));
mytrail.image_alpha = 1;
mytrail.fadespeed = 0.005;
mytrail.additive = 0;
mytrail.vspeed = -3 - random(5);
mytrail.hspeed = -3 + random(4);
mytrail.gravity = 0.2;
mytrail.gravity_direction = 270;
mytrail.depth = -150;
}
mus_alpha_monster();
}
</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>met = instance_create(x, y, oMAlpha);
met.facing = facing;
met.myid = myid;
met.spriteset = 0;
with (met) {
set_monster_vars(myid);
shell = instance_create(x, y, oMAlphaShell);
shell.damage = damage;
shell.hpush = 5;
shell.vpush = -3;
}
sfx_play(sndMAlphaIntro);
global.monstersalive = 1;
instance_destroy();
</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(oControl.mod_fusion == 1 || oControl.MonsterPalettesFusionOnly == 0) {
pal_swap_set(oControl.AlphaPalette, 1, false);
}
draw_self();
shader_reset();
</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>