Printing another sprite's position

Godot Version: 3.2.2
Hello, I am a beginner in using godot so my question may seem dumb but how do I print another sprite’s position for example I have Tom and Jerry in one node so how can I print Tom’s position from Jerry’s script??

1 Like

i dont use 3.2.2 but what you do is you create a class in toms script, and 2 variables that hold the position, then in jerry’s you make a variable = that class and then do something like

ClassName.variabley
ClassName.variablex

Keep in mind that im using 4.3, and you will get help faster by updating :slight_smile:

I’m going to agree with 4.3 - 3.2.2 is an interesting choice.

Unless it’s a typo and its 4.2.2 :smile: