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

230 lines
6.3 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sSMPickup</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>state = 0;
statetime = 0;
totalframes = 0;
s1fade_alpha = 1;
s1bgoffx = 0;
s1bgoffy = 0;
s2bgoffx = 0;
s2bgoffy = 0;
s3bgoffx = 0;
s3bgoffy = 0;
s3bgspeedx = 0;
s3bgspeedy = 0;
s3cloudsb_alpha = 1;
s3cloudsb_x = 0;
s3cloudsb_y = 0;
s3cloudsf = -4;
s3fade_alpha = 0;
if (os_type == os_android) os_powersave_enable(false);
</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 == 0) {
if (statetime == 200) {
instance_create(0, 0, oIntroText1);
mus_play_once(musIntroSeq);
}
if (statetime == 2900) {
state = 1;
statetime = 0;
}
}
if (state == 1) {
if (statetime &lt; 60) {
if (s1fade_alpha &gt; 0) s1fade_alpha -= 0.05;
}
if (statetime == 50) {
ship1 = instance_create(32, 32, oIntroShip1);
s1bgoffx = -1;
}
if (statetime &gt; 30) {
if (s1bgoffx &gt; -160) s1bgoffx *= 1.2;
}
if (statetime == 90) {
state = 2;
statetime = 0;
with (ship1) instance_destroy();
}
}
if (state == 2) {
if (statetime == 0) ship2 = instance_create(160, 120, oIntroShip2);
if (statetime &gt; 5) s2bgoffx = lerp(s2bgoffx, -160, 0.017);
if (statetime == 240) {
state = 3;
statetime = 0;
with (ship2) instance_destroy();
}
}
if (state == 3) {
if (statetime == 0) {
ship3 = instance_create(160, 80, oIntroShip3);
s3cloudsf = instance_create(0, 0, oIntroClouds);
s3bgspeedx = 0.6;
s3bgspeedy = 0.4;
}
if (statetime &gt; 70) {
if (s3cloudsf.image_alpha &gt; 0) s3cloudsf.image_alpha -= 0.02;
}
if (statetime &gt; 100) {
if (s3cloudsb_alpha &gt; 0) s3cloudsb_alpha -= 0.02;
}
if (ship3.state == 1) { }
if (ship3.state == 2) s3bgspeedx *= 0.95;
if (statetime &gt; 380) {
if (s3fade_alpha &lt; 1) s3fade_alpha += 0.02;
}
s3bgoffx -= s3bgspeedx;
s3bgoffy -= s3bgspeedy;
s3cloudsb_x -= 6;
s3cloudsb_y -= 4;
s3cloudsf.x -= 20;
s3cloudsf.y -= 12;
if (statetime == 500) event_user(0);
} // if (state == 3)
if (totalframes &gt;= 200) {
if (oControl.kStart) {
mus_fadeout(musIntroSeq);
event_user(0);
}
}
if (totalframes == 2941) {
sfx_play(sndShipLand);
}
statetime += 1;
totalframes += 1;
</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>if (os_type == os_android) os_powersave_enable(true);
room_change(15, 0);
</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 (state == 1) {
draw_background(bgIntroSC1, s1bgoffx-(oControl.widescreen_space/2), s1bgoffy);
draw_set_color(c_black);
draw_set_alpha(s1fade_alpha);
draw_rectangle(0-(oControl.widescreen_space/2), 0, 800, 800, false);
draw_set_alpha(1);
}
if (state == 2) draw_background(bgIntroSC2, s2bgoffx-(oControl.widescreen_space/2), s2bgoffy);
if (state == 3) {
if (!oControl.widescreen) {
draw_background(bgA0Sky, s3bgoffx, s3bgoffy);
} else {
draw_background(bgA0Sky_wide, s3bgoffx, s3bgoffy);
}
draw_background_tiled_ext(bgCloud1, s3cloudsb_x, s3cloudsb_y, 1, 1, -1, s3cloudsb_alpha);
draw_set_color(c_black);
draw_set_alpha(s3fade_alpha);
draw_rectangle(0-(oControl.widescreen_space/2), 0, 800, 800, false);
draw_set_alpha(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>-1</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>