gdquest-demos / godot-kickstarter-2019

Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
MIT License
244 stars 270 forks source link

Replaced position with get_global_position() #62

Closed tkorakas closed 3 years ago

tkorakas commented 4 years ago

I followed the example on the YouTube but it seems that Godots API has changed. Replacing position with get_global_position() fixed the problem for me.

Please check if the PR fulfills these requirements:

Related issue (if applicable): #

What kind of change does this PR introduce?

Does this PR introduce a breaking change?

New feature or change

What is the current behavior?

What is the new behavior?

Other information

NathanLovato commented 3 years ago

No, the API didn't change. position and global_position are still both there and work the same way. If you download the end project and test it, it works as intended and as shown in the video tutorial. Tested in Godot 3.2.