Posted August 27, 201411 yr Hello, would anyone know how I could make animations using the Tessellator? Thanks in advance, it all helps. I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr Googled 'tessellator animation tutorial minecraft forge'. first hit: http://www.minecraftforge.net/wiki/TileEntitySpecialRenderers_and_Animation Answer: The same as any other animation, e.g. use opengls glRotate(), glTranslate(), glScale() Have fun.
August 27, 201411 yr Author Lol. Thanks ! I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr Author I'd probably use glTranslate() for movement across an axis, but if not, how would I do movement instead of rotation? I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr I see no reason not to use it. It's meant for axis movement, has no negative sideeffects and there's little alternative. If you want an alternative you can do: - Override basefunctions of opengl itself(not that I have ever tried it, nor do I recommend it). - Move your x, y, z coordinates yourself before you draw the block. Both are utterly stupid and impractical. So just use glTranslate.
August 27, 201411 yr Author Yeah, you're definitely right. I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr Author However, is there a way I could get an event to fire after the animation is done? I don't want the animation to continue forever, I want it to happen for a set amount of time and then stop. I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr No need for an event because there are ample other solutions for that. Simple example: Boolean CanRotate in tileentity with getter and setter. In render class simply check that it is true and if you don't want to rotate it anymore just set it to false. The same goes for a timer.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.