How to animate a 2d sprite using frame_coords?

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

I’m trying to create an animation of a spinning reel in my slot machine game but I can’t figure out how.

I’ve noticed that you can do it in AnimationPlayer by changing the y value in frame_coords in 2d tile.
Like this:
enter link description here

But I wonder if this is even the correct approach.
Some help would be appreciated :slight_smile:

in csharp Sprite.FrameCoords = new Vector2I(frame_X, frame_Y );

Moreus | 2023-03-26 21:22