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.
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.
I ended up figuring out how to fix it myself, not sure how, tho.
But I can add an animation check, that'll probably improve the game a bit, so thanks!
Remove "Trigger once" condition. Never use it with objects that have multiple instances.
Develop games in your browser. Powerful, performant & highly capable.
Then what should I use? For each?
Depends on the task - For Each, Timer behavior, state machine. But "Trigger once" will only cause bugs when you use it like that.