How can I make GUI Anims

Started by MrCrayfisho on

Topic category: Help with modding (Java Edition)

Last seen on 15:30, 12. Oct 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make GUI Anims

I want to make a gui animation, I watched a video but it doesn't work. Can someone explain me how can I make a gui animation like a 3 images animation?

Last seen on 23:45, 13. Oct 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make frames for an…
Thu, 09/19/2024 - 01:41

You can make frames for an animated texture. Make the 3 frames for example as 3 textures. Then go to mcreator and click create texture, at the bottom of the dropdown list should be animated texture. Then add in your frames, eg 3 textures. Then to make it animate you would make an overlay which contains your animated texture. You would then need to make a condition where the overlay is only true just before opening the gui.

So you would make eg. block right clicked opens gui;

Condition procedure: if variable = true, return true otherwise return false. 

Gui opening procedure: block on right clicked, set variable to true (this makes the overlay and animation appear). Wait 20 ticks (however long your animation is or however long you want it to last) and set variable to false. 

If you want the animation for the closing you would need to make a seperate animated texture and overlay for that and another variable for closing gui.