Hi,
I have two Sprites (as separate scenes), one is the player character and the other is the enemy character...
The player and enemy can walk along platforms, but the player can walk through the enemy (its a Ghost), but takes damage.
The player and enemy move as they are both KinematicBody2D nodes with a rectangular shape at their feet which allows them to walk along the platforms.
I've set up the collision layers like this
Player: Layer = Player, Mark = Environment
Enemy: Layer = Player, Mast = Environment
Platforms: Layer = Environment, Mark = None
Player damage is caused by the Enemy the script checking GetOverlappingBodies()
This all works fine, except the Enemy is solid to the player, and the player can't walk through it.
I though that setting the collision layers as above would allow the player to walk through the enemy, but that's not the case.
Any pointers to whats causing this?
Thanks!