Posted February 20, 201312 yr Hopefully someone can help me here. I have created a new MOB. I have added code to it for custom animation. The animation works fine, better than I expected actually. But every single mob I spawn using my new model has the same animation sequence, and the more mobs I spawn the faster the animation runs. I am new to modding Minecraft, but have about many years of development exp in a variety of languages. Relevant Psudo Code from the model class public void setLivingAnimations(EntityLiving par1EntityLiving, float par2, float par3, float par4) { DoAnimation(); } public void DoAnimation() { double zChange = GetSomeRandomDouble(); arm1.rotateAngleZ = arm1.rotateAngleZ + (float)zChange; } Any help or explanation will be appreciated.
February 20, 201312 yr What do you see when you debugg the code? how does the value of zChange vary between calls? and between different entities calls to doAnimation? If you guys dont get it.. then well ya.. try harder...
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.