Constrain Platforming Character to movement of moveable platform

Hello,

I am currently making a platforming game that has a bunch of moveable platforms in a level that move back and forth between two barriers, named barrier right and barrier left. When the platform O/C with the barrier, it makes a self boolean true that causes it to move right and turns a move left boolean false (same for other direction).

Now, with that brief explanation aside, when my character jumps on it, he doesn't move with the platform but rather stays in one spot while the platform moves under him.

I would like the character to move back and forth with the platform and still be able to move and jump off of it, just like the moveable platforms in any mario game. However, I have no clue how to do that short of constraining his X position on the platform, but that makes no sense...

Any suggestions?

THANKS A TON!!!!!

Comments

Sign In or Register to comment.