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

171 lines
5.4 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>&lt;undefined&gt;</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>5</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>i = 0;
repeat (10) {
sx[i] = x;
sy[i] = y;
i += 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 (oCharacter.state == 23 || oCharacter.state == 24) {
sx[10] = sx[9];
sx[9] = sx[8];
sx[8] = sx[7];
sx[7] = sx[6];
sx[6] = sx[5];
sx[5] = sx[4];
sx[4] = sx[3];
sx[3] = sx[2];
sx[2] = sx[1];
sx[1] = sx[0];
sx[0] = x;
sy[10] = sy[9];
sy[9] = sy[8];
sy[8] = sy[7];
sy[7] = sy[6];
sy[6] = sy[5];
sy[5] = sy[4];
sy[4] = sy[3];
sy[3] = sy[2];
sy[2] = sy[1];
sy[1] = sy[0];
sy[0] = y;
x = oCharacter.x;
y = oCharacter.y;
switch (oControl.mod_fusion) {
case 1: {
///make_color_rgb(red, green, blue);
if (oControl.msr_fusionsuit == 1)
{
if (global.currentsuit == 0) image_blend = make_color_rgb(oControl.Trail_P_R_F_SR, oControl.Trail_P_G_F_SR, oControl.Trail_P_B_F_SR);
}
else
{
if (global.currentsuit == 0) image_blend = make_color_rgb(oControl.Trail_P_R_F, oControl.Trail_P_G_F, oControl.Trail_P_B_F);
}
if (oControl.msr_fusionsuit == 1)
{
if (global.currentsuit == 1) image_blend = make_color_rgb(oControl.Trail_V_R_F_SR, oControl.Trail_V_G_F_SR, oControl.Trail_V_B_F_SR);
}
else
{
if (global.currentsuit == 1) image_blend = make_color_rgb(oControl.Trail_V_R_F, oControl.Trail_V_G_F, oControl.Trail_V_B_F);
}
if (oControl.msr_fusionsuit == 1)
{
if (global.currentsuit == 2) image_blend = make_color_rgb(oControl.Trail_G_R_F_SR, oControl.Trail_G_G_F_SR, oControl.Trail_G_B_F_SR);
}
else
{
if (global.currentsuit == 2) image_blend = make_color_rgb(oControl.Trail_G_R_F, oControl.Trail_G_G_F, oControl.Trail_G_B_F);
}
break;
}
default: {
if (global.currentsuit == 0) image_blend = make_color_rgb(oControl.Trail_P_R, oControl.Trail_P_G, oControl.Trail_P_B); //c_yellow;
if (global.currentsuit == 1) image_blend = make_color_rgb(oControl.Trail_V_R, oControl.Trail_V_G, oControl.Trail_V_B); //c_lime;
if (global.currentsuit == 2) image_blend = make_color_rgb(oControl.Trail_G_R, oControl.Trail_G_G, oControl.Trail_G_B); //c_aqua;
break;
}
}
} else instance_destroy(); // if (oCharacter.state == 23 || oCharacter.state == 24) else
</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>i = 0;
repeat (10) {
draw_set_blend_mode(bm_add);
draw_sprite_ext(sBallTrail, 0, sx[i], sy[i], 1, 1, 0, image_blend, (1 - i * 0.1) * 0.5);
draw_set_blend_mode(bm_normal);
i += 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>