Noah2610 / deathfloor

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

Fix OnDeath event #56

Open Noah2610 opened 4 years ago

Noah2610 commented 4 years ago

Broken because HandleDyingEntitiesSystem removes EventsRegister, so any OnDeath events will never trigger.

Noah2610 commented 4 years ago

Actually still kinda broken. Works when entities have a Death animation. As a workaround for now we can give entities that rely on the OnDeath event an empty Death animation.

animations: {
    Death: Once([]),
}