Putting a sprite in the center of a tile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Antonb
:warning: Old Version Published before Godot 3 was released.

Hi,
how can I draw a sprite in the center of a given tile? I tried calculating the center based on the tile size, but the sprite is always a little bit off to the upper-left corner. Note: I scale down the original texture (see below):

var world_pos = _tilemap.map_to_world(Vector2(x,y))
var quest_sprite = Sprite.new()
quest_sprite.set_texture(load("res://scenes/map/textures/quest_mark.png"))
quest_sprite.set_z(100)
print(quest_sprite.get_texture().get_size())
quest_sprite.scale(Vector2(0.1,0.1))
quest_sprite.set_pos(world_pos + _tilemap.get_cell_size() /2 )
add_child(quest_sprite)