character to land on moving platform

matthowarthmatthowarth Member Posts: 76
edited November -1 in Working with GS (Mac)
Hi all,

I'm sure this noob question will have been asked many times, but I can't find it anywhere.

I have a character falling and I want him to land on a moving platform. Now I've got the platform moving ok and he falls fine, but if I make the platform respond to physics, when he collides with the platform he and the platform fall from the screen. If I make him change velocity to zero he stops, but then the platform slides by underneath him and then he falls.

Any advice?

cheers

Matt

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    constrain the self position x to whatever number you want the position to be, or you can make the platform unmoveable and interpolate the movement.

    cheers
  • matthowarthmatthowarth Member Posts: 76
    thanks John, I'll give that a go.

    Matt
  • matthowarthmatthowarth Member Posts: 76
    hi John and everyone else,

    thanks for the tips so far, the reason it wasn't working with the "constrain attributes" was to do with where the layers were in relation to each other (I think).

    It's now working, but as the character moves along with the platform, he is very jerky as if he's lagging by a fraction of a second.

    any thoughts on how to solve this?

    cheers

    Matt
Sign In or Register to comment.