turnofflayers("CUTSCENE"); turnofflayers("Assets_Pillars"); init = 0; con = 0; sneaksound = -1; tempflag_index = 60; spotlight = []; sneaking = false; sneak_con = 0; sneak_dist = 0; sneak_time = 0; su_off = new Vector2(12, -20); ra_off = new Vector2(-12, -24); sneak_height = 0; sneak_start = new Vector2(0, 0); sneak_end = new Vector2(0, 0); pitch_shift = 0; hat_con = 0; hat = -4; timer = 0; whiteall = instance_create_depth(-5, -5, -1000, obj_marker); whiteall.sprite_index = spr_whitepixel; whiteall.image_xscale = room_width + 10; whiteall.image_yscale = room_height + 10; whiteall.image_alpha = 0; whiteall.visible = false; jail_markers = [scr_marker_fromasset(findsprite(spr_dw_fcastle_jail_bars, "Assets_Pillars", c_red), 1000100), scr_marker_fromasset(findsprite(spr_dw_fcastle_jail_bars, "Assets_Pillars", c_lime), 1000100)]; jail_markers[0].image_blend = c_white; jail_markers[1].image_blend = c_white; c_party_walkdirect_speed = function() { if (argument5 == true) { c_customfunc(function() { with (obj_move_to_point) instance_destroy(); }); } c_sel_walkdirect_speed(kr, argument0, argument1, argument4); c_sel_walkdirect_speed(su, argument0 + argument2.x, argument1 + argument2.y, argument4); c_sel_walkdirect_speed(ra, argument0 + argument3.x, argument1 + argument3.y, argument4); }; party_sneak = function() { var _distance = round_to_multiple(lerp(sneak_start.x, sneak_end.x, argument0), 2); actor_movedirect(kr_actor, _distance, sneak_start.y, -2); actor_movedirect(su_actor, _distance + su_off.x, sneak_start.y + su_off.y, -2); actor_movedirect(ra_actor, _distance + ra_off.x, sneak_start.y + ra_off.y, -2); }; c_party_walkdirect = function() { if (argument5 == true) { c_customfunc(function() { with (obj_move_to_point) instance_destroy(); }); } c_sel_walkdirect(kr, argument0, argument1, argument4); c_sel_walkdirect(su, argument0 + argument2.x, argument1 + argument2.y, argument4); c_sel_walkdirect(ra, argument0 + argument3.x, argument1 + argument3.y, argument4); }; actor_movedirect = function() { var _new = true; if (i_ex(obj_move_to_point)) { with (obj_move_to_point) { if (target == argument0) { other.actor_move = id; _new = false; break; } } } if (_new) { actor_move = instance_create(0, 0, obj_move_to_point); actor_move.target = argument0; } actor_move.movex = argument1; actor_move.movey = argument2; if (argument3 > 0) { actor_move.movemax = argument3; } else { var __walktime = 0; if (_new) __walktime = point_distance(argument0.x, argument0.y, argument1, argument2) / -argument3; else __walktime = point_distance(actor_move.x, actor_move.y, argument1, argument2) / -argument3; if (__walktime < 1) __walktime = 1; actor_move.movemax = __walktime; } };