Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimatedSprite2D not loading Sprite sheet accurately #74721

Closed
nathanjwtx opened this issue Mar 10, 2023 · 4 comments
Closed

AnimatedSprite2D not loading Sprite sheet accurately #74721

nathanjwtx opened this issue Mar 10, 2023 · 4 comments
Labels

Comments

@nathanjwtx
Copy link

Godot version

4.0 Mono Stable

System information

Windows 11, NVidia RTX 3060, Vulkan/Forward+

Issue description

Screenshot 2023-03-10 085712

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?
#67164

Steps to reproduce

Walk

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

@AThousandShips
Copy link
Member

AThousandShips commented Mar 10, 2023

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

@nathanjwtx
Copy link
Author

Ok. Shall I close this issue?

@AThousandShips
Copy link
Member

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

@KoBeWi
Copy link
Member

KoBeWi commented Mar 17, 2023

This does not happen when loading the Sprite sheet into the frames of an AnimationPlayer.

It does
image
You need to use nearest filtering.

This is editor-only issue, closing as duplicate of #57550

@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants