Godot Version
Godot_v4.2.1-stable_mono_win64
Question
Hi, I want to change my Sprite2D’s current frame using my player script. I tried this, but it didn’t work:
GetNode(“Sprite2D”).frame = 1;
I get the error that ‘Sprite2D’ contains no definition for ‘frame’.
Frame is under the ‘Animation’ property of the Sprite2D, and I have my sprite sheet divided into 8 columns.
For now, all I want to do is set it to one of those 8.
I also tried capitalizing frame, putting animation before frame (capital and lowercase), nothing has worked.
I couldn’t find any documentation on this, so I would really appreciate some help!