Character sliding off moving platform

Please mark your solution as correct to close this question.