Hello, after 2h of research I have come to the conclusion that to make my top down character shoot I would need something like this:
var bullet_instance = bullet.instance()
bullet_instance.position = get_global_position()
bullet_instance.rotation_degrees = rotation_degrees
bullet_instance.apply_impulse(Vector2D(), Vector2D(bullet_speed, 0).rotated(rotation)
get_tree().get_root().add_child(bullet_instance)
In the youtube videos and forums I've seen how this alone makes the bullet shoot. However it is not my case because I get this: (first pic)
The bullet is just teleporting there, and stays there. Is there anything I've missed? I will attach the implementation, if it helps(half of it is the "My first 2D game") (ignore the placeholder sprites)