AI please wait - By Daniel Bumbarger
Project Banner » 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.
Get Project Banner
Project Banner
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 Avila3 days ago
- Dialog Relationship and Minimap by Kasey Russell3 days ago
- Main Menu and Combat UI by David Mereles3 days ago
- Audio Fix and Dialog System by Kasey Russell9 days ago
- Controlling the Narrative: Scalable Spawner by Diogo Vieira Avila9 days ago
- Path Finding Situation - By Daniel Bumbarger9 days ago
- Audio System by Kasey Russell15 days ago
- Griding Up An Environment: Bones of a Strategy Game by Diogo Vieira Avila16 days ago
- Animation Synchronization - By Daniel Bumbarger16 days ago
Leave a comment
Log in with itch.io to leave a comment.