So, basically, the following interaction is happening in my platformer metroidvania like game:
The green tiles have invisible square objects placed over used to only handle collision (oGround), and I'm having a lot of trouble to set these objects as jumpthru and not have a problem when I get to the situation as above.
Here's the code for the Player object for the jumpthru collision in the Step event
I understand that when the Player object is colliding with two instances of the same object, he doesn't know what to do? I really don't know how to fix this, anyone have any clues or can just help me?
The green tiles have invisible square objects placed over used to only handle collision (oGround), and I'm having a lot of trouble to set these objects as jumpthru and not have a problem when I get to the situation as above.
Here's the code for the Player object for the jumpthru collision in the Step event
GML:
//Vertical Collision
var vcollide;
vcollide = instance_place(x, y+vsp,oGround);
if (vcollide != noone)
{
if (sign(vsp) == 1)
{
if (!place_meeting(x,y, vcollide))
{
while (!place_meeting(x,y+sign(vsp),vcollide)) y += 1;
vsp = 0
}
}
}