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

166 lines
4.5 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>0</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>text1 = get_text("IntroCutscene", "Scene1");
text2 = get_text("IntroCutscene", "Scene2");
text3 = get_text("IntroCutscene", "Scene3");
drawtext = text1;
state = 0;
statetime = 0;
textpos = 1;
textalpha = 1;
texty = 164;
imgalpha = 0;
drawimg = bgIntroText1;
</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 == 0) textpos = 1;
if (statetime &lt; 60) {
if (imgalpha &lt; 1) imgalpha += 0.05;
}
if (statetime &gt; 880) {
if (textalpha &gt; 0) textalpha -= 0.05;
if (imgalpha &gt; 0) imgalpha -= 0.05;
}
if (statetime == 900) {
state = 1;
statetime = 0;
}
if (statetime &lt; 34 || statetime &gt;= 94) textpos += 0.25;
}
if (state == 1) {
if (statetime == 0) {
textpos = 1;
textalpha = 1;
drawtext = text2;
drawimg = bgIntroText2;
texty = 176;
}
if (statetime &lt; 60) {
if (imgalpha &lt; 1) imgalpha += 0.05;
}
if (statetime &gt; 880) {
if (textalpha &gt; 0) textalpha -= 0.05;
if (imgalpha &gt; 0) imgalpha -= 0.05;
}
if (statetime == 900) {
state = 2;
statetime = 0;
}
textpos += 0.25;
}
if (state == 2) {
if (statetime == 0) {
textpos = 1;
textalpha = 1;
drawtext = text3;
drawimg = bgIntroText3;
texty = 176;
}
if (statetime &lt; 60) {
if (imgalpha &lt; 1) imgalpha += 0.05;
}
if (statetime &gt; 880) {
if (textalpha &gt; 0) textalpha -= 0.05;
if (imgalpha &gt; 0) imgalpha -= 0.05;
}
if (statetime == 900) instance_destroy();
textpos += 0.25;
}
statetime += 1;
</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>var copyStr;
copyStr = string_copy(drawtext, 1, textpos);
draw_set_color(c_white);
draw_set_font(fontGUI2);
draw_set_alpha(textalpha);
draw_text(16, texty, copyStr);
draw_set_alpha(1);
draw_background_ext(drawimg, 16, 16, 1, 1, 0, -1, imgalpha);
</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>