GUI sprite help

Started by dontaviusthethird on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI sprite help

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…
Thu, 12/26/2024 - 09:47

All sprites (parts of texture) need to be of same dimension

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?

Sprites are divided equally based on the number of sprites you specify

Thirdly, what does the index of a sprite even refer to within the sprite texture file?

Offset or number of the part of the texture to use

Lastly, to make the index of a sprite change, what would the procedure look like

A procedure that users "return number" procedure block to return the index of the sprite you want to show

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, this is quite…
Fri, 12/27/2024 - 08:14

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?