Better HN
topnewbestaskshowjobs
Log inSign up

sapein

2 karma · joined Nov 6, 2015 (11y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

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).

comment 4y ago · link · parent

I've come across this link before, and it's actually really useful. I used it to help me implement A* myself for a project I was working on, which worked decently for my rather simple use-case.