How do I cut out a image from a sprite sheet?

If I have a 1024x1024 sprite sheet, how would I cut out a sprite with a resulution of 100x100, starting at pixels 20,20 on the image to display it in game?

Use an “ImageLabel” inside either a ScreenGui or a SurfaceGui.

Make the ImageRectSize for ImageLabel be: x, y
Make the ImageRectOffset for ImageLabel be: x, y

So, in your case:
ImageRectOffset: 20, 20
ImageRectSize: 100, 100

And of course, to animate this, you just have to change the ImageRectOffset via a script to highlight a different piece of the picture each time.

3 Likes