Thank's what I was expecting but I am missing something I can't find.
You see that the Mob (kinematicbody2d) has the collision layer and mask set to 1 (default).
The Area2D I am using to detect when a bullet hits it.
The CollisionShape2D is also using the default configuration.
In the Level scene I am spawning the mob like this:
extends Node2D
var mob: PackedScene = preload("res://scenes/Mob.tscn")
var spawn_time = 0
func _ready():
spawn_time = randi() % 5 + 1
func _process(delta):
spawn_time -= delta
if spawn_time <= 0:
spawn()
spawn_time = randi() % 5 + 1
func spawn():
var m = mob.instance()
m.position = Vector2(randi() % 1024, randi() % 600)
add_child(m)
