Moving Platforms - Make actor travel with platform

SmallBytesSmallBytes Member, PRO Posts: 21
edited November -1 in Working with GS (Mac)
Hi All

I am developing a platform game and have a moving platform that i want my Hero to travel with when he lands on it. I have searched the forum but found nothing. It seems like a simple task but for the life of me i cant get it working. My Hero also needs to be able to jump of the platform at any time. You get the idea, basic Mario stuff.

Hope someone can help.
TT

Comments

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    What's happening to it at the moment?

    Ace
  • SmallBytesSmallBytes Member, PRO Posts: 21
    The Actor (Hero) can jump on the moving platform but as the platform moves away the he stays in the same position (X,Y) he landed so he slides off or you have to keep walking in the direction the platform is moving to stay on.

    i want him to be able to jump on the moving platform and the platform then carry him to the other site of a gap for example without having to keep pressing the direction key.

    Hope that makes sense.
    TT
  • SmallBytesSmallBytes Member, PRO Posts: 21
    Here is a video that i found that shows how i want the Hero to interact with the moving platform. Hopefully this is better than my explanation:



    See how he stops and travels with the platform once he lands on it.

    TT
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    By what you're describing, you could just constrain the character's self.X to the platform's X which will be a global real attribute on contact but stops when you jump.

    There are better ways to do it but I'm just getting ready for bed lol

    Ace
Sign In or Register to comment.