var bullet = preload("res://bullet.tscn").instance()
bullet.set_as_toplevel(true)
bullet.global_position = position
add_child(bullet)
bullet.look_at(get_global_mouse_position())
it has to be in this order otherwise and for the bullet position += transform.x*speed