Jump to content

[1.11.2] Entity Animation


LogicTechCorp

Recommended Posts

I am not to great with animating entities and would like some help. I have an entity that has blades that spin while it attacks. The entity also has a cooldown between attacks. I would like for the blades to start out slowly and increase in speed and once the entity hits the mid point of its attack I want the blades to decrease in speed and stop until the next attack is ready. I already have the attacking and cooldown in place and just need the animation to complete the entity. Can you help me figure this out or point me in the right direction? All help is appreciated.

Link to comment
Share on other sites

I have the animation now working but there seems to be a desync issue. When the entity is spinning it is supposed to deflect projectiles which works when it is first spawned but when I reload the world it doesn't work correctly. Example, I can shoot it when it is not spinning and it deflects the arrow or I shoot it when it is spinning and it gets hurt.

 

Model:

https://github.com/LogicTechCorp/NetherEx/blob/1.11.x/src/main/java/nex/client/model/entity/ModelSpinout.java

 

Entity:

https://github.com/LogicTechCorp/NetherEx/blob/1.11.x/src/main/java/nex/entity/monster/EntitySpinout.java

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.