AI please wait - By Daniel Bumbarger
Bannerfall » Devlog
The Problem
When the AI started its turn, it would move towards the player units. Eventually it would move in range of attacking and not attack. The check to see if any players where in the area was happening too fast, this check happened before it even finished it's movement.
Problem Solutions
For this to work we needed the AI to wait. By adding the WaitForMessage function at the end of the movement task node, I could manipulate when to leave this node and go into the attack node. Now once we have reached our destination the AI would check for who is in range.
Bannerfall
Status | In development |
Author | lazydevstudios |
Genre | Strategy, Adventure |
Tags | Strategy RPG, Turn-based Strategy |
More posts
- Structuring Code in Multi-Interactive Systems by Diogo Vieira Avila96 days ago
- Dialog Relationship and Minimap by Kasey Russell96 days ago
- Main Menu and Combat UI by David Mereles96 days ago
- Audio Fix and Dialog System by Kasey RussellFeb 22, 2025
- Controlling the Narrative: Scalable Spawner by Diogo Vieira AvilaFeb 22, 2025
- Path Finding Situation - By Daniel BumbargerFeb 22, 2025
- Audio System by Kasey RussellFeb 15, 2025
- Griding Up An Environment: Bones of a Strategy Game by Diogo Vieira AvilaFeb 15, 2025
- Animation Synchronization - By Daniel BumbargerFeb 15, 2025
Leave a comment
Log in with itch.io to leave a comment.