Code: if hspeed > 0 and collision_rectangle(bbox_right,bbox_top+4,bbox_right+1,bbox_bottom-1,obj_solid,1,0) { hspeed = 0 while collision_rectangle(bbox_right,bbox_top+4,bbox_right,bbox_bottom-1,obj_solid,1,0) and not collision_point(x,bbox_top+4,obj_solid,0,0) x-=1 } if hspeed < 0 and collision_rectangle(bbox_left-1,bbox_top+4,bbox_left,bbox_bottom-1,obj_solid,1,0) { hspeed = 0 while collision_rectangle(bbox_left,bbox_top+4,bbox_left,bbox_bottom-1,obj_solid,1,0) and not collision_point(x,bbox_top+4,obj_solid,0,0) x+=1 } while collision_rectangle(bbox_left,bbox_top,bbox_right,bbox_bottom,obj_slopeparent,1,0) y-=1
Very bad code. Why can't you delete obj_slopeparent? Slope parent just makes it harder for collision checking. It's just another ground object. Even MKF and SMFR still uses this object for slopes when they said, "We heavily modified it." If there's a Hello clone with jumping under slopes, then that sucks. It will just warp Mario to the top. Yes, I can fix it and even add jumpthrough slopes (I already made one) by opening the GMK, but I can't edit EXEs.
[code]
if hspeed > 0
and collision_rectangle(bbox_right,bbox_top+4,bbox_right+1,bbox_bottom-1,obj_solid,1,0)
{
hspeed = 0
while collision_rectangle(bbox_right,bbox_top+4,bbox_right,bbox_bottom-1,obj_solid,1,0)
and not collision_point(x,bbox_top+4,obj_solid,0,0)
x-=1
}
if hspeed < 0
and collision_rectangle(bbox_left-1,bbox_top+4,bbox_left,bbox_bottom-1,obj_solid,1,0)
{
hspeed = 0
while collision_rectangle(bbox_left,bbox_top+4,bbox_left,bbox_bottom-1,obj_solid,1,0)
and not collision_point(x,bbox_top+4,obj_solid,0,0)
x+=1
}
while collision_rectangle(bbox_left,bbox_top,bbox_right,bbox_bottom,obj_slopeparent,1,0)
y-=1
[/code]
Very bad code. Why can't you delete obj_slopeparent? Slope parent just makes it harder for collision checking. It's just another ground object. Even MKF and SMFR still uses this object for slopes when they said, "We heavily modified it." If there's a Hello clone with jumping under slopes, then that sucks. It will just warp Mario to the top. Yes, I can fix it and even add jumpthrough slopes (I already made one) by opening the GMK, but I can't edit EXEs.
_________________
|