• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Moving Platforms Problem

N

Nicogollo

Guest
My problem : The problem that I have is when the platform is going down, the player keeps floating (and can't jump, except for the double jump) and I don't know how to fix it.
That image shows what is my problem
If anyone can please help me it will be awesome, I can show you the codes of player, platform, scripts too.

Code:
///Desplazamiento

y += intVY;

repeat (abs(intVY))
{
    if place_meeting(x, y + sign(intVY), objBlock) || place_meeting(x, y + sign(intVY), objBumper)
    {
        intVY *= -1;
        break;
    }
}

if (place_meeting (x, y - 1, objPlayer) && !place_meeting(x, y, objPlayer))
{
    with (objPlayer)
    {
        intVY = other.intVY;
    }
}

if (place_meeting (x, y - 2, objPlayer) && !place_meeting(x, y, objPlayer))
{
    with (objPlayer)
    {
        if (y > other.y) y++;
        intVY = other.intVY;
    }
}

if (place_meeting (x, y - 3, objPlayer) && !place_meeting(x, y, objPlayer))
{
    with (objPlayer)
    {
        if (y > other.y) y += 1;
        intVY = other.intVY;
    }
}
That's my code (step) of the vertical moving platform
Thanks.
 
Top