Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I use spritesheets?

I'd like to use a spritesheet in GUI for a game of mine, but I'm not sure how I would go about using one. Any help would be much appreciated! :D

1 answer

✓ Accepted answer

Using the ImageRectSize and ImageRectOffset properties of the two Image* gui objects, you can use spritesheet decals. The 'rect' is the size of each individual sprite (you can change this on the fly if you want to.) and the 'offset' is akin to the UDim3 Offset component in that it's based on the top-left corner.

I'd add links but I'm on mobile right now, sorry!

3 comments

0

Thanks!

0

Also to note, make sure to evenly space your sprites as well!

0

You can actually change both settings on the fly, so you don't have to do that at all!

This discussion is preserved as it was. New answers, comments, and votes are closed.