You need a direction vector for your bullet. A direction vector pointing from point A
towards point B
can be found via (B - A).normalized()
. So in your case you can do this:
bullet.target_direction = (start_pos - target).normalized()
I don't know what your bullet code looks like, but for example if it's a KinematicBody2D, now you can do this:
move(target_direction * speed * delta)
Or if you're using an Area2D:
set_pos(get_pos() + target_direction * speed * delta)