How to move Area2D to the new point after click that would return positon of 0:0

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HashTag

Hey guys,

I guess my title is not truly correct since it is a bit more complicated in my eyes. I have Area2D and CollisionShape with calculations of counting points depending on where the player will click (as closer to the center as higher score). I also created a Sprite and wrote a script that would change the image of the sprite after a click and it will loop between 2 sprites each click. My main issue is that I need to move Area2D with CollisionShape together with the second sprite, that it would be “detached” to his hand or just to the nearby. Maybe anyone will be able to help me out, I thought that community member has helped me to solve this issue by attaching area2D to the stickman hand and keep rotating the circle together with the arm position (rotation_degrees += 15) but this was not a solution since it keeps changing the correct output of the score according to my formula. Hopefully, some of you will be able to help me out. Cheers and thanks.

EXAMPLE ----> Imgur: The magic of the Internet
ARCHITECTURE ----> Imgur: The magic of the Internet
CODE -----> Imgur: The magic of the Internet
AFTER THE FIRST CLICK ----> Imgur: The magic of the Internet
AFTER THE SECOND CLICK ----> Imgur: The magic of the Internet