Legacy GM Sprite doesn't changes when a vertical platform is going up

S

SavagE

Guest
I have an issue with my vertical platforms... when it is going down, everything works, although when it's going up, the sprite of my character doesn't changes, so the sprite gets stucked on the last position, here's a video of what I'm talking about:

Here's my animation code:
Code:
if ((place_meeting(x, y+1, objMovilV) || place_meeting(x, y+1, objMovilH)) && bolGround)
{
    if (intMove!=0) sprite_index = sprPlayerMove; else sprite_index = sprPlayerIdle;
}
I can't figure our what happens c:
 
T

TheMatrixHasMe

Guest
Your sprites collision mask is getting stuck in the platform as the platform moves up because the platform is moving into the sprites collision mask.

The code you showed just determines your sprite being drawn but it doesn't show the collision code you have to safeguard being stuck really. I'm sure someone here with more experience with platformer's can help you better but that's the logic of what is happening.

What code do you use to keep from getting stuck in floors and what not?
 
Top