Noah2610 / deathfloor

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

Basic enemy death animation / bullet destroy animation #42

Closed hoichael closed 4 years ago

Noah2610 commented 4 years ago

@hoichael

Add Death animation of type Once to entities, to make them play that animation when their health hits 0, before they are deleted. https://github.com/Noah2610/deathfloor/blob/da8b02edfd23d742efdd2b46ad3f2837b23cd761/resources/settings/enemies/dev/dev.ron#L35

It's important that the animation type is Once and not Cycle, with Cycle the death animation would loop and the entity would never get deleted.