Draw_circle not positioned as defined

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

This is my code

func _ready():
	pass

func _draw():
	draw_circle(Vector2(0,0),20,Color(1,1,1))

So I give the position to (0,0) which mean the top left corner of the screen, But the circle will draw in a different position.
Also for other position not working well.
Is it my problem or engine problem?

:bust_in_silhouette: Reply From: kidscancode

(0, 0) doesn’t mean top left corner of the screen, it means (0, 0) on the node where you’re doing the drawing. For example, if you create a new scene with a basic Node2D and move the node around, you’ll find the circle will draw wherever the node is positioned.

You are right.
Thank you

mohsen.ph.69 | 2017-08-06 01:07