Character2D with Character2D on top can't move left or right 😕

Godot Version

4.4

Question

How would you enable horizontal movement while another object is above the player?

I’m making a multiplayer platformer, where you must work together to complete levels. One mechanic requires the larger player to carry the smaller one, but this doesn’t work. The larger player is unable to move with the smaller one on top.

In this example, the green player is unable to move left and right because of the red player above, even though there is nothing to the left or right stopping the green player. I should be able to move here, just not jump.

This is an extremely minimal examples, there should be nothing else affecting it.

I noticed this once when playing with making a multiplayer game. My recommendation would be to put an AnimatableBody2D on top of the CharacterBody2D’s head, so that the other player stands on it.