Moving a Hero character with a platform...

Hi, first time here & Box2D newbie!

Apologies if this has been covered before but I had a look through and couldn't quite find a good answer!

Basically I have a Hero running around and I need to make some moving platforms for him to jump between. I am currently only tweening my platforms back and forth not using SetLinearVelocity or anything (as I was originally using static bodies) and have set the platform body type to Kinematic. When my Hero lands on the platform however, either the platform stops under him or (by changing some of the values) it just keeps moving and the Hero falls off!

Is there a good way to make the Hero follow the platform whilst retaining his ability to run and jump as if he were on the ground?

Thanks in advance for any help, much appreciated!
friction would be my first thought.
I tried adjusting friction for moving platforms and that helped some but I'd get the problem where the player would "jump" when a platform stopped, changed direction or reversed. By "jump" I mean that the player's velocity could continue along the original vector when the platform changed direction or stopped.

To overcome this I've been setting the hero's velocity to match any moving platform he's standing on. Something like:
Code:

if (hero is standing on moving platform)
{
   hero.SetLinearVelocity(movingPlatform.GetLinearVelocity);
}

You should be adding the velocity of the platform to the velocity you would apply on the player. Beceause the way your doing right now will have your player stay forever on that platform.

Original thread: https://box2d.org/forum/viewtopic.php?t=4713