How do I make set_position calls happen when I move a canvasitem in the editor?

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

I am using the tool keyword to update variables in different nodes. It works as intended when I use the inspector to update position values for a sprite. It doesn’t, however, work when I drag and move around the sprite using the editor. I want to know how to get the tool to update when I move around the canvasitem using the editor.