Player fallin while standing on moving platforms

0 favourites
  • 15 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Why when the character is on the moving platform he is always falling and how to fix it?

    .capx

    Thanks.

  • Guys?

  • Played around with your example. I can see that sometimes the player will fall off of the edge of the platform or jump through it. I corrected this by adjusting the Collision Polygon of your moving platform. Just bring the edges out and it works just fine. Easy fix!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Played around with your example. I can see that sometimes the player will fall off of the edge of the platform or jump through it. I corrected this by adjusting the Collision Polygon of your moving platform. Just bring the edges out and it works just fine. Easy fix!

    The problem is not in the collision.

    The player standing on the platform is in the fall and can not jump on it.

  • Odd. I did not see this error when I tested your capx. I am using Chrome and this did not happen once. Are you using a different browser? Is it updated?

  • Odd. I did not see this error when I tested your capx. I am using Chrome and this did not happen once. Are you using a different browser? Is it updated?

    It's chrome and it's updated.

  • Just tested it again and it seems to be working fine on my end. If the player jumps above the collision mask, he stays on the platform. I'm not sure what is causing the error on your side. I'm using Google Chrome 17.0.963.56. Did you update to the 18beta branch?

  • Just tested it again and it seems to be working fine on my end. If the player jumps above the collision mask, he stays on the platform. I'm not sure what is causing the error on your side. I'm using Google Chrome 17.0.963.56. Did you update to the 18beta branch?

    <img src="http://screenshot.su/img/3d/ed/60/3ded60c0a0797c6fbc9e7ccd583a0014.jpg" border="0" />

  • Screen Shot

    Here is a screen shot of the player standing on the platform on my end using the capx you first posted. I'm not sure why the player is falling through on your end, but it's working fine on mine. Have you changed anything since you first posted the capx?

  • Screen Shot

    Here is a screen shot of the player standing on the platform on my end using the capx you first posted. I'm not sure why the player is falling through on your end, but it's working fine on mine. Have you changed anything since you first posted the capx?

    Okay, and when he is standing on platform try to press jump.

  • Ah, there are a couple of reasons this is happening. Notice how the character is "hopping" in place as the platform moves down? You cannot jump if your character is still "falling". This happens because the platform is moving too fast for your character. Set the platform event to move 0.3 pixels instead of one. You'll see this fixes the error. Also, I'd recommend giving the platform a movement behavior so you can control the movement easier.

  • Ah, there are a couple of reasons this is happening. Notice how the character is "hopping" in place as the platform moves down? You cannot jump if your character is still "falling". This happens because the platform is moving too fast for your character. Set the platform event to move 0.3 pixels instead of one. You'll see this fixes the error. Also, I'd recommend giving the platform a movement behavior so you can control the movement easier.

    I am afraid that I needed just such a speed and even more.

  • Basically what is happening is that the platform and player vertical velocities are different, so you have to lock player vector y with platform vector y. At the same time disabling gravity maybe. But i believe it's more complex than that since i opened your example, tried this method and failed. There's a series of factors. I believe someone complained about this a while ago and it was fixed internally in the engine, strange;

  • Just tested that out. If you set an event for the player to match y vector on collision with the platform it works perfectly. I did have to add 8 direction to the platform to do this, but setting

    Sprite on Collison with Sprite2: Sprite set Platform Vector Y to Sprite2.8Direction.VectorY

    Fixes the problem. Thanks for chiming in Kiyoshi! I hope this helps Vladoss!

  • Just tested that out. If you set an event for the player to match y vector on collision with the platform it works perfectly. I did have to add 8 direction to the platform to do this, but setting

    Sprite on Collison with Sprite2: Sprite set Platform Vector Y to Sprite2.8Direction.VectorY

    Fixes the problem. Thanks for chiming in Kiyoshi! I hope this helps Vladoss!

    Can you share .capx with me? :P

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)