
Comments

No comments yet.
Free
Rockclones Beta 11-F Multiplayer fix
This is what happens when an inside joke gets turned into a series, but the finale remains unfinished. Changed one piece of code.
Based on the Five Nights at Sonic's ★COLLECTION★ Release of Rockclones
Credits to Chatgpt, because I can't code and don't wanna annoy someone who can.
Changed code:
gml_Object_Stage_Cam_Obj_Step_2
if (ready == 0)
exit
if instance_exists(P5_VControl_Obj)
exit
if (transition == 0)
{
if (target == self)
{
if (global.players == 1)
{
if instance_exists(P1_RC_Obj)
{
if (abs(x - P1_RC_Obj.x) > (4 + global.Sanic * 4))
{
x += ((P1_RC_Obj.x - x) / 3)
y = P1_RC_Obj.y
}
else
{
x = P1_RC_Obj.x
y = P1_RC_Obj.y
}
}
}
if (global.players == 2)
{
if (instance_exists(P1_RC_Obj) && (!instance_exists(P2_RC_Obj)))
{
if (abs(x - P1_RC_Obj.x) > 8)
{
y = P1_RC_Obj.y
if (x > P1_RC_Obj.x)
x -= 8
else
x += 8
}
else
{
x = P1_RC_Obj.x
y = P1_RC_Obj.y
}
}
if ((!instance_exists(P1_RC_Obj)) && instance_exists(P2_RC_Obj))
{
if (abs(x - P2_RC_Obj.x) > 8)
{
y = P2_RC_Obj.y
if (x > P2_RC_Obj.x)
x -= 8
else
x += 8
}
else
{
x = P2_RC_Obj.x
y = P2_RC_Obj.y
}
}
if (instance_exists(P1_RC_Obj) && instance_exists(P2_RC_Obj))
{
if (abs(P2_RC_Obj.x - P1_RC_Obj.x) < 404)
x = P1_RC_Obj.x + (P2_RC_Obj.x - P1_RC_Obj.x) / 2
x = round(x)
y = P1_RC_Obj.y + (P2_RC_Obj.y - P1_RC_Obj.y) / 2
y = round(y)
}
}
}
else if (abs(x - (target.x + (target.bbox_right - target.bbox_left) / 2)) > 4 && (global.hend - global.hstart) != 1)
x += ((target.x + (target.bbox_right - target.bbox_left) / 2 - x) / 4)
else
{
x = target.x + (target.bbox_right - target.bbox_left) / 2
y = target.y
}
if (x < (hstart * 424 + 212))
x = hstart * 424 + 212
if (x > (hend * 424 - 212))
x = hend * 424 - 212
if (y < (vstart * 240 + 120))
y = vstart * 240 + 120
if (y > (vend * 240 - 120))
y = vend * 240 - 120
x += shake
}
else
{
target = self
with (Solid_Obj)
{
if (object_index == Solid_Obj)
{
if (yoku == 1)
instance_destroy()
timer = 5
}
}
with (Item_Obj)
{
if (timer != -1)
instance_destroy()
}
if instance_exists(P1_RC_Obj)
{
with (P1_RC_Obj)
{
instance_change(RC_Pause_Obj, true)
global.PActive -= 1
}
}
if instance_exists(P2_RC_Obj)
{
with (P2_RC_Obj)
{
instance_change(RCP2_Pause_Obj, true)
global.PActive -= 1
}
}
with (RC_Pause_Obj)
{
if (global.TransID == transid)
{
if (Stage_Cam_Obj.hspeed != 0 && hspeed == 0)
{
if (Stage_Cam_Obj.door == 0)
x += (0.4166666666666667 * Stage_Cam_Obj.dir)
if (Stage_Cam_Obj.door == 1)
x += ((2/3) * Stage_Cam_Obj.dir)
}
if (Stage_Cam_Obj.vspeed != 0 && vspeed == 0)
y += (0.5423728813559322 * Stage_Cam_Obj.dir)
}
}
with (Player_Blt)
instance_destroy()
with (EBlt_Obj)
instance_destroy()
with (E_Obj)
visible = false
}
hstart = global.hstart
hend = global.hend
vstart = global.vstart
vend = global.vend
view_xview[0] = x - 212
view_yview[0] = y - 120
Nothing has been posted to this project page yet. Check back later!