How to refer to position in control nodes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TraitPhoe
if pos == "enemy":
		$damage_popup.position = Vector2(152*rand_range(0.9, 1), -92*rand_range(0.9, 1))
	else:
		$damage_popup.position = Vector2(player_pos.x*rand_range(0.9, 1), 50+player_pos.y*rand_range(0.9, 1))

When using this code it shows me this error

Invalid set index 'position' (on base: 'Label') with value of type 'Vector2'.

Why can’t I use Vector2 if position parameter needs to have vector coordinates?

:bust_in_silhouette: Reply From: TraitPhoe

Answer found I just had to type rect_position