Need Help to fix shaking in Sprite sheet using ImageRectOffset

:wave: Hello,

I’ve been trying to use a sprite sheet to give a 2d character more movement. Here’s the video:

There is a small (but noticeable) jitter that moves the image 1px in any direction. It may not be as obvious in the video due to compression.
I know this isn’t an issue with the pictures, as they work just fine when tested in the sprite sheet generator’s animation preview.
The math should be correct. If it weren’t, it would be moving the same direction & distance for each frame.

I’ve made sure the sprite sheet doesn’t get automatically scaled down by Roblox (the largest dimension is less than 1024). There are 20 images in the sheet.

I’ve been trying to get this work properly for so long that I’m thinking of resorting to uploading each image directly. :confused:

Any help would be greatly appreciated. If you need any of the code or assets, I can provide them. :slightly_smiling_face:

3 Likes

honestly its looks better with the jitter

1 Like

I disagree, the jitter gets amplified depending on the screen size making it inconsistent.

1 Like

if you use multiplication for finding a face then try tweaking it until it stops (probably by 1)

Found the issue; the program I was using didn’t correctly scale them, which left 1 pixel short.

How I fixed it: grabbed every individual image, scaled them correctly, manually placed them on a grid pattern.

1 Like

can i see a video? (this needs more letters)

I don’t think you need to, the issue is that the image was 799 x 999 instead of 800 x 1000 which caused each frame to move ~0.25 pixels.

I simply manually imported all the images, scaled them down to 200*200, then put them into an 800 x 1000 grid, which did all I needed flawlessly.

1 Like

no i just wanna see the finished result you don’t have to thoughj