<undefined> 0 -1 -500000 -1 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 /// 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"); 1 603 7 0 0 -1 2 self 0 0 1 file_text_close(fid); 1 603 7 0 0 -1 2 self 0 0 1 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; 1 603 7 0 0 -1 2 self 0 0 1 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)); 1 603 7 0 0 -1 2 self 0 0 1 if (frame > 60) { popup_text("Rec Stop"); instance_destroy(); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0