How do access a Node2D's transform property? Specifically transform.rotation_degrees

Godot Version

4.2.2

Question

Hi y’all, for some reason I’m getting an error when trying to access a Node2D’s transform property. The specific line that’s giving an error is line 45. The “pivot” variable is a Node2D in my hierarchy, and the other lines referencing it work perfectly fine. It just throws me an error when trying to access any of it’s transform properties (which I know it has, I can see them in the inspector). Here is the code:

Thank you.

Okay, so I realized Godot is not Unity, and you don’t need .transform before any of the transform’s properties :sob:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.