I'm making an evolution simulator. There's little critters that use pathfinding to find food and water. Sometimes, they walk infinitely into the corner of the map.
Hi.
I think you need to go through all the creatures. And you can do it less often, not every tick.
Try this.
Develop games in your browser. Powerful, performant & highly capable.
Yes, and where you stop a dead creature, you can add an animation check to the check condition, and if the animation is not the “death” animation playing now, only then turn on the “death” animation.