This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm making a platformer,
There is an animated platform (going up and down) that player can jump onto (using collision shape).
There's an animated sprite of a worm (also with KinematicBody2D and CollisionShape).
But when I need that worm to stay on that platform, it doesn't, their collision shapes don't collide. (Although the Player's collision shape does).

What I might be doing wrong?
Here's a screenshot of what is happening

in Engine by (53 points)

Your screenshot doesn't appear to be working

Is the animation controlling the worms position? Make sure the animation is only animating the children.

1 Answer

0 votes

They will only collide if you are moving using the move_and_collide or move_and_slide methods and if they are in the same collision layer. If you are moving a KinematicBody manually it can basically go anywhere.

by (572 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.