godot
godot copied to clipboard
AnimatedSprite2D not loading Sprite sheet accurately
Godot version
4.0 Mono Stable
System information
Windows 11, NVidia RTX 3060, Vulkan/Forward+
Issue description
It's kinda hard to see from the screenshot, but when loading in a Sprite sheet to the AnimatedSprite2D, the auto generated cells are clipping the one above. This does not happen when loading the Sprite sheet into the frames of an AnimationPlayer. I tried adjusting the offset and separation but that didn't solve the problem. It's as if the generated grid needs nudging up a pixel row.
It might be related to this issue? https://github.com/godotengine/godot/issues/67164
Steps to reproduce
Load the above Sprite sheet into an AnimatedSprite2D node and zoom in. You should be able to see the overlap between cells.
Minimal reproduction project
N/A
If it is the behaviour in the editor that is the problem it's due to filtering, should be fixed by #73962 or #74341, unsure which
Ok. Shall I close this issue?
Check the PRs and see if the issues they link describe your issue, otherwise see if they will fix your issue, I think it is what's wrong but can't check myself at the moment
This does not happen when loading the Sprite sheet into the frames of an AnimationPlayer.
It does
You need to use nearest filtering.
This is editor-only issue, closing as duplicate of #57550