The Sprite2D
is a Node2D
node, not Control
, only Control
nodes have anchors. Use TextureRect
instead of Sprite2D
Once again, you didn’t understand the fundamentals of the node system; taking some tutorials will help you understand the nodes. Don’t get stressed, tutorials are fun, and you will grasp a lot after a few days.
Before, I had no experience with coding, but I still played around. It was interesting but stressful, for I was fumbling about. I didn’t know how to achieve my goal. After reading books and watching videos, I finally understood the functions, classes, and how to design my code structure nicely, and it felt easy to solve problems.