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.
That's my code (step) of the vertical moving platform
Thanks.
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;
}
}
Thanks.