Hello, As you may know, I am trying to make a 2.5D Platform Shooter, and I wish to add to my game a system for multiple Planes (Like in Virtual Boy Wario Land, or Kirby Triple Deluxe) and I tried to make a 2nd plane, and with the Actual Collision system, I am struggling, Here's how the collision works
walk = accel_final * last_h
vsp = vsp + grv;
if (place_meeting(x,y+1,obj_wall_parent)) && (key_jump)
{
vsp = jumpheight;
}
if (vsp < 0) && (!key_jump_held) vsp = max(vsp,vsp*0.85)
//H Collision
if (place_meeting(x+hsp,y,obj_wall_parent))
{
yplus = 0;
while (place_meeting(x+hsp,y-yplus,obj_wall_parent) && yplus <= abs((walksp/walksp)*(walksp+1))) yplus += 1;
if place_meeting(x+hsp,y-yplus,obj_wall_parent)
{
while (!place_meeting(x+sign(hsp),y,obj_wall_parent)) x+=sign(hsp);
hsp = 0;
}
else
{
y -= yplus
}
}
x += hsp;
// Downward slopes
if !place_meeting(x,y,obj_wall_parent) && vsp >= 0 && place_meeting(x,y+2+abs((walksp+1)*(walksp/walksp)),obj_wall_parent)
{while(!place_meeting(x,y+1,obj_wall_parent)) {y += 1;}}
//v Collision
if (place_meeting(x,y+vsp,obj_wall_parent))
{
while (!place_meeting(x,y+sign(vsp),obj_wall_parent))
{
y = y+ sign(vsp);
}
vsp = 0;
}
y = y + vsp;
And here's how my game looks like in the shape of a video, so if any of you could help me, please let me know.