sometimes the bullets colide but most of the time they just go right through each other.
the bullet is a rigid body2d and is only a sprite and a collision shape
the enemy is a kinematic2d with a sprite, collision shape, area2d, and the area 2d has another collision shape.
the code for the bullet is,
var bullet_instance = bullet.instance()
bullet_instance.position = get_global_position()
bullet_instance.rotation_degrees = rotation_degrees
and it is inside the player node,
the code for the enemy is,
var motion = Vector2()
var player = get_parent(). get_node("Player")
position += (player.position - position)/50
so does anyone know a fix for this?