Sprite2D Animation section

Godot Version

4.0

Question

I didn’t get how to correctly set values within animation section; looking at the following screenshot:


How should I indicating the right vertical row?it looks like I can just scrolling moving only along the horizontal axis

It will move along the horizontal axis first. Once frame >= h_frames, it will loop back around to the start of the next row.
Given that h_frames is 6 and v_frames is 7:

  • When frame is 0, cell (0, 0) will be shown
  • When frame is 1, cell (1, 0) will be shown
  • When frame is 5, cell (5, 0) will be shown
  • When frame is 6, cell (0, 1) will be shown
  • When frame is 7, cell (1, 1) will be shown

etc.