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
199 lines
5.8 KiB
XML
199 lines
5.8 KiB
XML
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
|
<object>
|
|
<spriteName><undefined></spriteName>
|
|
<solid>0</solid>
|
|
<visible>-1</visible>
|
|
<depth>-500000</depth>
|
|
<persistent>-1</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>/// Replay recording object
|
|
filename = "rec.txt";
|
|
control_state = "";
|
|
last_state = "";
|
|
frames_recorded = 0;
|
|
frame = 0;
|
|
start_room = room;
|
|
start_x = oCharacter.x;
|
|
start_y = oCharacter.y;
|
|
start_state = oCharacter.state;
|
|
start_facing = oCharacter.facing;
|
|
fid = file_text_open_write(filename);
|
|
file_text_write_real(fid, start_room);
|
|
file_text_writeln(fid);
|
|
file_text_write_real(fid, start_x);
|
|
file_text_writeln(fid);
|
|
file_text_write_real(fid, start_y);
|
|
file_text_writeln(fid);
|
|
file_text_write_real(fid, start_state);
|
|
file_text_writeln(fid);
|
|
file_text_write_real(fid, start_facing);
|
|
file_text_writeln(fid);
|
|
random_set_seed(1);
|
|
global.targetx = start_x;
|
|
global.offsetx = 0;
|
|
global.targety = start_y;
|
|
global.offsety = 0;
|
|
room_goto(start_room);
|
|
popup_text("Rec Start");
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="1" 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>file_text_close(fid);
|
|
</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>control_state = "";
|
|
control_state += string(oControl.kLeft);
|
|
control_state += string(oControl.kRight);
|
|
control_state += string(oControl.kUp);
|
|
control_state += string(oControl.kDown);
|
|
control_state += string(oControl.walk_zone);
|
|
control_state += string(oControl.kJump);
|
|
control_state += string(oControl.kFire);
|
|
control_state += string(oControl.kMissile);
|
|
control_state += string(oControl.kAim);
|
|
control_state += string(oControl.kAim2);
|
|
control_state += string(oControl.kSelect);
|
|
control_state += string(oControl.kStart);
|
|
control_state += string(oControl.kWalk);
|
|
control_state += string(oControl.kMorph);
|
|
control_state += string(oControl.kMenu1);
|
|
control_state += string(oControl.kMenu2);
|
|
if (control_state != last_state) {
|
|
file_text_write_string(fid, string(frame));
|
|
file_text_writeln(fid);
|
|
file_text_write_string(fid, control_state);
|
|
file_text_writeln(fid);
|
|
frames_recorded += 1;
|
|
}
|
|
frame += 1;
|
|
last_state = control_state;
|
|
</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>draw_set_font(fontMenuSmall);
|
|
draw_set_alpha(1);
|
|
draw_text_shadow(view_xview[0] + 8, view_yview[0] + 120, control_state);
|
|
draw_text_shadow(view_xview[0] + 8, view_yview[0] + 136, string(frame) + " - " + string(frames_recorded));
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="9" enumb="119">
|
|
<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 (frame > 60) {
|
|
popup_text("Rec Stop");
|
|
instance_destroy();
|
|
}
|
|
</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>
|