I'm trying to create a platform runner game. I have an enemy that runs towards the player and self destroy when off screen. Since the enemy is running on floor, I have a CharacterBody2D
. I don't want the enemy to push player, so I had enemy to be on a different collision layer. The problem is, enemy can now run on platform fine and will not push the player, but it doesn't know when it collides with the player. This is what I currently have
Player/Enemy
CharacterBody2D
- AnimatedSpite2D
- CollisionShape2D
- VisibleOnScreenNotifier2D
What I also tried was to use Area2D
instead of CharacterBody2D
. that'll emit body_entered
signal, but enemy won't run/collide with the floor