Started by
dontaviusthethird
on
Topic category: Help with MCreator software
In the latest MCreator update (2024.4), they added sprites to GUIs and overlays. I am wondering how to use the feature. I have not heard of sprites before and find the tips in MCreator to be vague.
Firstly, does the sprite texture have to be of specific dimensions?
Secondly, when keying in the number of sprites, what does that mean? Does it divide up the texture into said number of sprites? If so, how would I know where the divisions are and where to draw the different textures?
Thirdly, what does the index of a sprite even refer to within the sprite texture file?
Lastly, to make the index of a sprite change, what would the procedure look like
All sprites (parts of texture) need to be of same dimension
Sprites are divided equally based on the number of sprites you specify
Offset or number of the part of the texture to use
A procedure that users "return number" procedure block to return the index of the sprite you want to show
Thank you, this is quite useful, but 2 more question, how does it divide the image, horizontally or vertically and what happens if the image is a square, then how would it divide the image?
Image needs to be stripe. It autodetects if stripe is wider than higher or vice versa