0 votes

In my current project, all of my imported images are off by one pixel to the upper left, and I don't know how to fix it. It literally started hours ago, and I can't make precise collision shapes since they're symmetrical.
An example.
This happens any time I change the texture of a sprite by dropping it into the texture variable, or adding it directly.
Image Import settings are pretty much described in the picture.
These new images (before 2021-04-26) are the only ones it happens to. I don't think my settings changed and this was the only editing I was doing at the time.

EDIT: Okay, so all of my images except a few (default icon, large tileset) seem to be out of bounds of the select in one or two directions by one pixel. It seems to be random, with some being left-shifted, down-shifted, or like the first example. This even applies to
SpriteFrames, so AnimatedSprite is also changed.

EDIT2: It only affects smaller sprites, like 21x21, which were the majority of my sprites. I'm going to try to upload my sprites as 64x64 to see if I can use it as a workaround. Still haven't found the cause.

in Engine by (16 points)
edited by

My guess is that it's related to either the settings of the node, or the import settings.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.