Topic was automatically imported from the old Question2Answer platform.
Asked By
GodotUser
Hello,
Could you please point me in the right direction to find the resources which will help me migrate old GDscript code to a newer version. (I am new to coding)
Example, I did a tutorial on YouTube to “Make a Space Shooter” and the instructor used Godot 2.x, I wish to convert it to a newer Godot engine and make changes. I could not find much info on the errors I am encountering and wish to learn how to do the migration.
I often find tutorials which are not using the latest Godot version and wish to migrate the code to one of the newer Godot engines.
Some conversions are easy, ie. get_pos = get_position but others more cryptic like func find_node(node):
Function signature doesn’t match the parent. Parent signature is: ‘Node find_node(String, bool=default, bool)’
not sure why the author chose to use pass in addition to code in the function, I left it as is. FYI, * these early issues I hit are in the utils.gd provided here.
My change above “appeared” to resolve the issue , then hit another issue:
var main_node setget , _get_main_node
var view_size setget , _get_view_size
var mouse_pos setget , _get_mouse_pos
Still researching it. =D
I just bought the Udemy course “Discovering Godot…” so I can learn more about how gdscript works =D