Used Shaun Spalding's code, but it only works with one player. Can't figure out a way of doing it so it works with two players.
current code:
current code:
GML:
if (instance_exists(oPlayer1))
{
if round (oPlayer1.y + (oPlayer1.sprite_height/2) > y + 1)
{
mask_index = -1;
}
else
{
mask_index = sPlatform;
}
}