Original message (verbatim)
Amount of hframes cannot be smaller than 1.
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
Setting the Sprite2D hframes (horizontal frame count) to 0 or a negative number in script or the Inspector.
Typical cause
set_hframes rejects values below 1; horizontal frame count must be at least 1.
Step-by-step fix
- Set hframes to a positive integer of at least 1.
- Check that the horizontal column count matches the image width.
- Set hframes and vframes together against the image grid; avoid leaving either side at 0.
Source links
Per-entry sources and capture date are listed at /sources#G24.
Related errors
Related Godot errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00