Hacker News new | ask | show | jobs
by sapein 709 days ago
The states improvements are definitely nice, and I did run into the whole "Unable to transition into current state" issue, as I was using it for a respawn. I ended up just making a "Respawn" state, and then quickly switch out of it to reset back to the original.

With this being in it definitely would make things a lot cleaner in some ways, as I can at least get the whole "Re-enter State" a bit easier.

Also the Observers and Hooks are really nice and will allow me to more cleanly implement a feature that I've been needing (Optional Components).

1 comments

You can also check out my 3rd-party crate `pyri_state` for easier state refreshing (https://github.com/benfrankel/pyri_state/blob/main/examples/...) + other features like state pattern-matching. Just released v0.2.0 for bevy 0.14 :)