|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
roadman |
Hello
I’m a beginner to GODOT and I’m doing the Pong tutorial. The Tutorial seems to be outdated?
Problem:
I can not get the poistion info of any sprite. In my Screenshot you can see the suggestions I have and get_pos()
seems not to be one of them.
How to solve this problem or is the function placed elsewhere now?
|
|
|
|
Reply From: |
kidscancode |
That tutorial is old and outdated. You are looking at the 2.1 version of the docs.
The 3.0 docs are here: Step by step — Godot Engine (3.0) documentation in English
BTW, you can choose the docs version at the bottom of the sidebar.
Thanks.
I still want to built this Pong Game though. So the question remains: How can I retrieve the position of a node in 3.0 then?
Thanks in advance
roadman | 2018-05-08 14:21
In 3.0 properties may be accessed directly, rather than using get/set, so this would be:
Node2D.position
That said, I still don’t recommend this tutorial. It was replaced for some very good reasons, and doesn’t really introduce Godot well.
kidscancode | 2018-05-08 15:03