0 votes

I just exported my 2.1 project to 3.0 and a lot of functions is not there anymore.
so is there documentation or list of changed function or stuff like that?
and i need to know the replacement of get_pos()

in Engine by (26 points)

1 Answer

+1 vote

Many of the most commonly used get/set methods have been replaced by direct member variables. For example, to set a Node2D's position use:

position = Vector2(x, y)

There are a very large number of changes from 2.1 to 3.0. The API docs and autocomplete are your best friends for finding this stuff out. Not to self-promote, but I did make a video summarizing some of the biggest changes: https://youtu.be/vCUKwT_jb9Q

You can also take a look at this: https://github.com/dploeger/godot-migrationnotes

More guides are on the way. A lot writers had to wait until the release, so they could be accurate with the final versions of things.

by (20,359 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.