Collision not working with character and slime through Brackley's Tutorial

Godot Version

4.5

Question

Hey guys, I am following Brackley’s tutorial with making a game.
I am very new to Godot.
My character is not colliding with the slime for whatever reason.
I swear I am following what the tutorial is doing, but it is just not detecting it.
See here:

Please let me know if there is a better way to share my code.
The Killzone works, but when I put it on the slime, no collision occurs.

Thanks!

Please help!

You don’t have a CollisionShape2D in the killzone.tscn, you only have a CollisionShape2D parented to the killzone in the slime.tscn. And the _on_body_entered function doesn’t seem to be connected in killzone.gd.

I think you should remove the CollisionShape2D from slime.tscn, add it to killzone.tscn and connect it.

1 Like

Thanks! I am away at the moment but will this when I get home. Appreciate your help and time!

1 Like