Function "set.pos()" not found in base self

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

I am using the code from here:

and I fixed the @export error and the script is attached to the Texture on the 2D node and it says set.pos is not found.

:bust_in_silhouette: Reply From: jgodfrey

That code seems to be for Godot 2.x. What was set_pos() (not set.pos() as your title states) has been changed to set_position() in later versions of Godot.