I'm trying to make a solid platform that moves up and down that my character can land on. I've created the platform and animated it with the Tween class so it moves up and down. If my character lands on it while it's moving upwards the character sinks into the platform and eventually passes through it. It's as though the platform moves upwards but doesn't push the character upwards with it. The character can ride it down ok, just not upwards.
I've also noticed that if I make the platform move horizontally, I can jump on it but the character doesn't move along with the platform. Instead the platform continues sliding out from under the character while the character stays still but the character won't continue falling until I make them move. I've tried various bodyTypes on the platform and adjusted the friction to no effect.
What do I have to do to make this work properly?
I've also noticed that if I make the platform move horizontally, I can jump on it but the character doesn't move along with the platform. Instead the platform continues sliding out from under the character while the character stays still but the character won't continue falling until I make them move. I've tried various bodyTypes on the platform and adjusted the friction to no effect.
What do I have to do to make this work properly?