Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Enemy animations being reset on variant switch #66

Closed hoichael closed 4 years ago

Noah2610 commented 4 years ago

Animations don't reset on variant switch, as long as the variant doesn't have its own animation component. What can happen is, when an entity collides with a wall its velocity is killed so it plays its Idle animation if it has one. So if you have an entity that switches variant when colliding with a wall and its animation shouldn't reset, then don't give it an Idle animation.