[Ohrrpgce] [ohrrpgce/ohrrpgce] Enemy spawned with 0 HP appears with sprite of dead enemy / disagreements about what enemies exist/are alive (#1221)

Ralph Versteegen notifications at github.com
Tue Sep 28 19:08:43 PDT 2021


I was resisting putting Jump in there due to the existing jumping bug #1107. But thinking more carefully, I'm going to say that being hidden shouldn't be another state, because being hidden should be synonymous with the sprite slice being invisible (again, it's a bad idea to store the same state in multiple variables which can become inconsistent). And it could be possible for the sprite to be invisible as part of a Appear or Death animation, or as part of an on-death (even an on-death Jump attack!)

Also, to reduce bugs due to state not having been updated to Pending_Death yet after the HP reaches 0, maybe the state enumeration should be returned from a method call.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1221#issuecomment-929762809
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210928/da78f7c9/attachment.html>


More information about the Ohrrpgce mailing list