The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+2 votes


I'm very very new to godot.

I'm making a basic 2D platformer game. My main player is a kinematic body and I've just used the animation player to create a moving platform [static body]. Only problem is that my player does not move along with the platform when it jumps onto it.

I understand it is probably fixed with some code but I have a deadline for this project in the next 2 days and so I thought I'd ask anyone on here if they've already done it.

Thanks for any help!

in Engine by (24 points)

1 Answer

0 votes

Check out the Kinematic 2D demo, that has a kinematic player and moving platforms, plus code to move you with them. You basically check to see if the player is colliding with a platform, and if they are, match their movement to the platform;


Check out the demo script for a full example.

by (108 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.