I loaded a 150*180 sprite from a sprite sheet, created an animation using the AnimationPlayer, and used it to make a character object. However, when I set this character as the target in the InitialCamera node, the sprite started displaying shifted down by 1 pixel. This might not have been noticeable in the tutorial images because their sizes were smaller.
Does this mean that the split sprite frames are displayed shifted down by 1px (the bottom pixel is cut off, and another frame intrudes at the top)? Or, does it mean that when following is performed, the camera center shifts by 1px?
It takes the former form.
Since the character’s shoe soles are drawn at the bottom edge of each sprite, they end up being reflected.
The sprite sheet belongs to AnimatedSprite2D.
This appears to be caused by Godot’s scaling specifications. When a sprite fills the frame to the very bottom, the scaling logic causes it to “bleed,” so the sprite frame needs to have a 1-2px margin.
I see. I will pay attention to how to create images.
Thank you for your confirmation.