simple question pls about get_pos()

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

iam totally new with the engine just getting started
well iam following a course on udemy “godot-beginner-to-advanced”

the image speaks of itself

:bust_in_silhouette: Reply From: kidscancode

You’re following a tutorial for Godot 2.1 while using Godot 3.0.

In Godot 3.0, many methods were renamed, and most node properties were made accessible directly instead of using get/set methods. The line would be:

var rightplayerposition = get_node("rightPlayer").position

You’re going to run into a lot of these. I recommend you start with a 3.0-focused tutorial. The one in the official docs is a good introduction to the engine: