You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
238 lines
9.8 KiB
XML
238 lines
9.8 KiB
XML
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
|
<object>
|
|
<spriteName>sMslSpark</spriteName>
|
|
<solid>0</solid>
|
|
<visible>0</visible>
|
|
<depth>0</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>global.curropt = 0;
|
|
opset = 0;
|
|
editing = 0;
|
|
ealpha = 0;
|
|
active = 0;
|
|
fadeout = 0;
|
|
rectoffset = 0;
|
|
dtext = "";
|
|
currentsuit = global.currentsuit;
|
|
sfx_stop(sndSpinJump);
|
|
sfx_stop(sndSpaceJump);
|
|
sfx_stop(sndScrewAttack);
|
|
sfx_stop(sndSpaceScrewAttack);
|
|
sfx_stop(sndSpinJumpWater);
|
|
|
|
|
|
tiptext[0] = get_text("Equipment", "PowerSuit_Tip");
|
|
tiptext[1] = get_text("Equipment", "VariaSuit_Tip");
|
|
tiptext[2] = get_text("Equipment", "GravitySuit_Tip");
|
|
tiptext[3] = get_text("Equipment", "ChargeBeam_Tip");
|
|
tiptext[4] = get_text("Equipment", "WaveBeam_Tip");
|
|
tiptext[5] = get_text("Equipment", "SpazerBeam_Tip");
|
|
tiptext[6] = get_text("Equipment", "PlasmaBeam_Tip");
|
|
tiptext[7] = get_text("Equipment", "IceBeam_Tip");
|
|
tiptext[8] = get_text("Equipment", "MorphBall_Tip");
|
|
tiptext[9] = get_text("Equipment", "SpiderBall_Tip");
|
|
tiptext[10] = get_text("Equipment", "JumpBall_Tip");
|
|
tiptext[11] = get_text("Equipment", "Bombs_Tip");
|
|
tiptext[12] = get_text("Equipment", "PowerGrip_Tip");
|
|
tiptext[13] = get_text("Equipment", "ScrewAttack_Tip");
|
|
tiptext[14] = get_text("Equipment", "HiJump_Tip");
|
|
tiptext[15] = get_text("Equipment", "SpaceJump_Tip");
|
|
tiptext[16] = get_text("Equipment", "SpeedBooster_Tip");
|
|
|
|
|
|
|
|
</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 (active && oControl.kDown && oControl.kDownPushedSteps == 0) {
|
|
global.curropt += 1;
|
|
|
|
if (global.curropt == 1 && global.item[5] == 0) global.curropt += 1;
|
|
if (global.curropt == 2 && global.item[9] == 0) global.curropt += 1;
|
|
if (global.curropt == 3 && global.item[10] == 0) global.curropt += 1;
|
|
if (global.curropt == 4 && global.item[12] == 0) global.curropt += 1;
|
|
if (global.curropt == 5 && global.item[13] == 0) global.curropt += 1;
|
|
if (global.curropt == 6 && global.item[14] == 0) global.curropt += 1;
|
|
if (global.curropt == 7 && global.item[11] == 0) global.curropt += 1;
|
|
if (global.curropt == 9 && global.item[2] == 0) global.curropt += 1;
|
|
if (global.curropt == 10 && global.item[3] == 0) global.curropt += 1;
|
|
if (global.curropt == 11 && global.item[0] == 0) global.curropt += 1;
|
|
if (global.curropt == 12 && global.item[1] == 0) global.curropt += 1;
|
|
if (global.curropt == 13 && global.item[8] == 0) global.curropt += 1;
|
|
if (global.curropt == 14 && global.item[4] == 0) global.curropt += 1;
|
|
if (global.curropt == 15 && global.item[6] == 0) global.curropt += 1;
|
|
if (global.curropt == 16 && global.item[7] == 0) global.curropt += 1;
|
|
if (global.curropt > 16) global.curropt = 0;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
|
|
if (active && oControl.kUp && oControl.kUpPushedSteps == 0) {
|
|
global.curropt -= 1;
|
|
|
|
if (global.curropt < 0) global.curropt = 16;
|
|
if (global.curropt == 16 && global.item[7] == 0) global.curropt -= 1;
|
|
if (global.curropt == 15 && global.item[6] == 0) global.curropt -= 1;
|
|
if (global.curropt == 14 && global.item[4] == 0) global.curropt -= 1;
|
|
if (global.curropt == 13 && global.item[8] == 0) global.curropt -= 1;
|
|
if (global.curropt == 12 && global.item[1] == 0) global.curropt -= 1;
|
|
if (global.curropt == 11 && global.item[0] == 0) global.curropt -= 1;
|
|
if (global.curropt == 10 && global.item[3] == 0) global.curropt -= 1;
|
|
if (global.curropt == 9 && global.item[2] == 0) global.curropt -= 1;
|
|
if (global.curropt == 7 && global.item[11] == 0) global.curropt -= 1;
|
|
if (global.curropt == 6 && global.item[14] == 0) global.curropt -= 1;
|
|
if (global.curropt == 5 && global.item[13] == 0) global.curropt -= 1;
|
|
if (global.curropt == 4 && global.item[12] == 0) global.curropt -= 1;
|
|
if (global.curropt == 3 && global.item[10] == 0) global.curropt -= 1;
|
|
if (global.curropt == 2 && global.item[9] == 0) global.curropt -= 1;
|
|
if (global.curropt == 1 && global.item[5] == 0) global.curropt -= 1;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
|
|
|
|
if (active && oControl.kRight > 0 && oControl.kRightPushedSteps == 0 && global.curropt < 8) {
|
|
if (global.curropt >= 0 && global.curropt < 3) {
|
|
global.curropt = 8;
|
|
} else global.curropt = 14;
|
|
if (global.curropt == 14 && global.item[4] == 0) global.curropt += 1;
|
|
if (global.curropt == 15 && global.item[6] == 0) global.curropt += 1;
|
|
if (global.curropt == 16 && global.item[7] == 0) global.curropt += 1;
|
|
if (global.curropt > 16) global.curropt = 8;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
if (active && oControl.kLeft > 0 && oControl.kLeftPushedSteps == 0 && global.curropt >= 8) {
|
|
|
|
if (global.curropt >= 8 && global.curropt < 14) { global.curropt = 0; }
|
|
else { global.curropt = 3; }
|
|
if (global.curropt == 3 && global.item[10] == 0) global.curropt += 1;
|
|
if (global.curropt == 4 && global.item[12] == 0) global.curropt += 1;
|
|
if (global.curropt == 5 && global.item[13] == 0) global.curropt += 1;
|
|
if (global.curropt == 6 && global.item[14] == 0) global.curropt += 1;
|
|
if (global.curropt == 7 && global.item[11] == 0) global.curropt += 1;
|
|
if (global.curropt > 7) global.curropt = 0;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
|
|
|
|
if (active && oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) {
|
|
editing = 1;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
if (editing) {
|
|
if (global.curropt == 0) global.currentsuit = 0;
|
|
if (global.curropt == 1) global.currentsuit = 1;
|
|
if (global.curropt == 2) global.currentsuit = 2;
|
|
if (global.curropt == 3) global.cbeam = !global.cbeam;
|
|
if (global.curropt == 4) global.wbeam = !global.wbeam;
|
|
if (global.curropt == 5) global.sbeam = !global.sbeam;
|
|
if (global.curropt == 6) global.pbeam = !global.pbeam;
|
|
if (global.curropt == 7) global.ibeam = !global.ibeam;
|
|
if (global.curropt == 8) global.morphball = !global.morphball;
|
|
if (global.curropt == 9) global.spiderball = !global.spiderball;
|
|
if (global.curropt == 10) global.jumpball = !global.jumpball;
|
|
if (global.curropt == 11) global.bomb = !global.bomb;
|
|
if (global.curropt == 12) global.powergrip = !global.powergrip;
|
|
if (global.curropt == 13) global.screwattack = !global.screwattack;
|
|
if (global.curropt == 14) global.hijump = !global.hijump;
|
|
if (global.curropt == 15) global.spacejump = !global.spacejump;
|
|
if (global.curropt == 16) global.speedbooster = !global.speedbooster;
|
|
editing = 0;
|
|
}
|
|
dtext = tiptext[global.curropt];
|
|
if (active && oControl.kStart && oControl.kStartPushedSteps == 0) {
|
|
fadeout = 1;
|
|
active = 0;
|
|
}
|
|
if (fadeout) rectoffset += 2;
|
|
if (ealpha < 1 && fadeout == 0) ealpha += 0.05;
|
|
if (ealpha > 0 && fadeout) ealpha -= 0.05;
|
|
if (ealpha >= 1 && fadeout == 0 && instance_exists(oSubScrChange) == false) active = 1;
|
|
if (ealpha <= 0 && fadeout) {
|
|
global.ingame = 1;
|
|
global.transitiontype = 3;
|
|
room_goto(global.currentroom);
|
|
Unmute_Loops();
|
|
}
|
|
if (global.curropt < 14) {
|
|
oSubScrPlayer.targety = 52;
|
|
} else oSubScrPlayer.targety = -13;
|
|
</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></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>
|