Hello everyone, I need some quick hints. I am just starting to learn Godot, but I am a software engineer, so programming and such itself is no problem.
After finishing the 2D tutorial I am currently trying to create a very simple Brotato Clone.
For that I already have the player, enemies, bullets and stuff like that. But I have a problem with the collisions. The Enemies are CharacterBody2D with a CollisionShape2D child. Now I want to fire bullets which move in a straight line with constant speed and can hit the enemy.
In my tests I had bullets with a RigidBody2D and the enemies where just Area2D at that point. With that it worked fine. But now that my Enemies are CharacterBody2D (which I believe they should be, so they can't 'enter' each other), the bullets just collide with them and stay there. Previously my enemies had on_body_entered and there the bullets hit the.
What Node type should my bullets be and which would be teh best way to let them hit the Enemies (CharacterBody2D)?