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
138 lines
4.0 KiB
XML
138 lines
4.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>sEDTrigger</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>if (global.event[200] > 0) instance_destroy();
|
|
targetx = x + 8;
|
|
activated = 0;
|
|
state = 0;
|
|
statetime = 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 (state == 1) {
|
|
if (statetime == 1) mus_fadeout(musCaveAmbienceA4);
|
|
if (statetime < 60) {
|
|
if (oCharacter.x > 320) with (oCharacter) x -= 1;
|
|
if (oCharacter.x < 320) with (oCharacter) x += 1;
|
|
}
|
|
if (statetime > 10 && statetime < 90) {
|
|
if (oCharacter.y < 184) oCharacter.y += 0.5;
|
|
}
|
|
if (statetime == 60) instance_create(320, 144, oA4SwitchCables);
|
|
if (statetime == 120) {
|
|
global.event[200] = 1;
|
|
global.darkness = 0;
|
|
with (oLightEngine) event_user(2);
|
|
with (inst_127337) lock = 0;
|
|
with (oA4PowerBG) event_user(0);
|
|
mus_change(musArea4A);
|
|
}
|
|
if (statetime == 320) {
|
|
with (oCharacter) {
|
|
state = 23;
|
|
statetime = 0;
|
|
morphing = 0;
|
|
turning = 0;
|
|
}
|
|
update_log(26);
|
|
instance_destroy();
|
|
}
|
|
if (statetime > 280) {
|
|
if (oCharacter.y > 176) oCharacter.y -= 0.5;
|
|
}
|
|
statetime += 1;
|
|
} // if (state == 1)
|
|
</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 (other.state == 23 && other.xVel == 0 && state == 0) {
|
|
with (other) {
|
|
state = 60;
|
|
statetime = 0;
|
|
}
|
|
state = 1;
|
|
sfx_play(sndMorphBallSlot);
|
|
sfx_play(sndAutoadActivate);
|
|
}
|
|
</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>
|