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

137 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>ssEDFX</spriteName>
<solid>0</solid>
<visible>0</visible>
<depth>0</depth>
<persistent>-1</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>event_user(0);
alarm[0] = 1;
</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>if (!directory_exists("scrmap")) directory_create(working_directory + "/" + "scrmap");
i = -1;
do {
i += 1;
} until (!file_exists(working_directory + "/scrmap/scrmap 0" + string(i) + ".png") &amp;&amp; !file_exists(working_directory + "/scrmap/scrmap 00" + string(i) + ".png") &amp;&amp; !file_exists(working_directory + "/scrmap/scrmap 000" + string(i) + ".png"));
sname = "scrmap/scrmap " + string(i);
if (i &lt; 1000) sname = "scrmap/scrmap 0" + string(i);
if (i &lt; 100) sname = "scrmap/scrmap 00" + string(i);
if (i &lt; 10) sname = "scrmap/scrmap 000" + string(i);
screen_save(sname + ".png");
row += 1;
if (row &gt; rows - 1) {
row = 0;
column += 1;
}
if (column &gt; columns - 1) {
with (oCharacter) visible = true;
view_object[0] = oCamera;
instance_destroy();
exit;
}
view_xview[0] = column * 320;
view_yview[0] = row * 240;
alarm[0] = 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>rows = room_height / 240;
columns = room_width / 320;
row = 0;
column = 0;
view_object[0] = noone;
with (oBackground) instance_destroy();
with (oControl) displaygui = 0;
with (oCharacter) {
visible = false;
x = 16;
y = 16;
state = 33;
}
with (oFlashLight2) instance_destroy();
//with (oTestKeys) visible = false;
background_color = c_blue;
background_showcolor = 1;
background_visible[0] = 0;
view_xview[0] = column * 320;
view_yview[0] = row * 240;
</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>