Collision between two Kinematic Bodies

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By verbaloid

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

Your screenshot doesn’t appear to be working

Eric Ellingson | 2020-01-08 23:18

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

Magso | 2020-01-09 03:14

:bust_in_silhouette: Reply From: tastyshrimp

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.