You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/objects/oSS_Bg.object.gmx

149 lines
5.6 KiB

<!--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>100</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>image_alpha = 0;
fadeout = 0;
fadein = 1;
scanlines = 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" 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>surface_free(oControl.screen_surface);
</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 (fadein) {
if (image_alpha &lt; 1) {
image_alpha += 0.05;
} else fadein = 0;
}
if(os_type == os_android &amp;&amp; os_is_paused()) alarm[0]=1;
if (!surface_exists(oControl.screen_surface)) {
oControl.screen_surface = surface_create(512+oControl.widescreen_space, 256);
s_bg = background_add(working_directory + "/tempscr", 0, 0);
surface_set_target(oControl.screen_surface);
draw_clear(c_black);
if (background_exists(s_bg)) draw_background(s_bg, 0, 0);
surface_reset_target();
if (background_exists(s_bg)) background_delete(s_bg);
}
</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 (surface_exists(oControl.screen_surface)) {
draw_surface(oControl.screen_surface, view_xview[0] - (oControl.widescreen_space/2), view_yview[0]);
draw_surface_ext(oControl.screen_surface, view_xview[0] - (oControl.widescreen_space/2) + 1, view_yview[0], 1, 1, 0, -1, 0.5 * image_alpha);
draw_surface_ext(oControl.screen_surface, view_xview[0] - (oControl.widescreen_space/2) - 1, view_yview[0], 1, 1, 0, -1, 0.5 * image_alpha);
draw_surface_ext(oControl.screen_surface, view_xview[0] - (oControl.widescreen_space/2) + 2, view_yview[0], 1, 1, 0, -1, 0.2 * image_alpha);
draw_surface_ext(oControl.screen_surface, view_xview[0] - (oControl.widescreen_space/2) - 2, view_yview[0], 1, 1, 0, -1, 0.2 * image_alpha);
}
draw_set_color(c_black);
if (!fadeout) draw_set_alpha(0.8);
if (fadeout) draw_set_alpha(0.8 * image_alpha);
draw_rectangle(view_xview[0]-(oControl.widescreen_space/2), view_yview[0], view_xview[0] + 330 + (oControl.widescreen_space/2), view_yview[0] + 250, false);
if (global.ssmode &gt; 0) draw_background_tiled_ext(bg_SubScrScanlines, view_xview[0]-(oControl.widescreen_space/2), view_yview[0], 1, 1, -1, 0.2 * image_alpha);
draw_background_ext(bg_SubScrFX, view_xview[0] - (oControl.widescreen_space/2), view_yview[0], 1, 1, 0, -1, 0.8 * image_alpha);
draw_background_ext(bg_SubScrFX, view_xview[0] + 320 + (oControl.widescreen_space/2), view_yview[0], -1, 1, 0, -1, 0.8 * image_alpha);
draw_background_ext(bg_SubScrFX, view_xview[0] - (oControl.widescreen_space/2), view_yview[0] + 240, 1, -1, 0, -1, 0.8 * image_alpha);
draw_background_ext(bg_SubScrFX, view_xview[0] + 320 + (oControl.widescreen_space/2), view_yview[0] + 240, -1, -1, 0, -1, 0.8 * image_alpha);
</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>