Improvements to pathfinding and mob AI, as well as improved mob animations and attack animations are featured in this weekly update!
Mobs can now chase targets. They use pathfinding to find the best possible path to the target.
Work in progress: A small group of procedurally generated zombies move towards a target.
New Mob Animations
I revisited the animations of the mobs this week and made the decision to redo their walk/run animations. They will also have their own attack animations, which I'll be able to show soon!
The need to improve the animations of the mobs came as the animations for the player character were developed and improved. I realized that it'd be best if I held the mob animations to the same standard.
I'm still experimenting and tweaking with some of the new animations, and for a few mobs there still isn't attack animations yet. The zombie run animation is one that I feel like I can show right now though:
Zombie run animation. You may notice some exposed flesh near the waist, this will be fixed. 🙂
Pathfinding & Mob AI Improvements
A good portion of the week was spent working with the pathfinding and mob AI systems. I ran into some problems with these systems, more so pathfinding, that delayed some of the things that I wanted to do this week.
Some improvements/fixes to pathfinding include: mobs abandoning their paths if necessary, preventing mobs from getting stuck, and preventing mobs from continuing to recalculate paths for unreachable locations. Performance improvements were made, and a refactor of the mob AI code was done to better support new features,
There is still more work and additional testing to be done in this area, but at the moment pathfinding is working fine in most scenarios.
Next Week Preview
Next week I'll be continuing to work on the new mob animations, and improving pathfinding & mob AI. I should be pretty much done with combat by the end of next week and be able to showcase some actual mob combat. I think the only thing left after that would be to make things look nicer (particle effects, UI, sounds).
If you have any questions or comments, let me know! I'd love to hear from you guys. You can email me at email@example.com, or by dropping a comment wherever you saw the link to this blog post! (twitter, reddit, discord, etc.)