Game Demo
AI Programming
Progress
Yay! I solved the problem with the Nav-mesh. The problem was when I calculated the midpoint of the sides of my triangles so it wasn’t a major problem but kind of hard to find. This is how it looks now:
After that was fixed I found another problem, this time it’s when I’m trying to find the triangle the character stands inside. Just like all my other problems it works some times an other times it doesn’t. I will have to fix this problem soon because I need it to work to test the rest of my program.
While ignoring that problem I have been working on the goal driven behavior for my agents. Agents should now be able to pick up the enemy flag and return it to their base to score as well as attack each other as soon as I fix the “find triangle problem”. At the moment I’m working on the priority system for the goals. So that the agents will appear “smart” and not just rush in to a group of five enemies.
The agents is also sending messages to each other to make the rest of the team more aware of the game situation. A few of the messages that can be sent if when the flag is taken and returned. Also got a few messages being sent between two fighting agents so they now when the opponent dodges of preforms an attack.
Working with Mathias to solve some problems with the mesh I’m using for the Nav-mesh but I think we got them all solved. The problem was when he made the mesh in parts, my Nav-mesh creation system didn’t find the path from one part to another even thou the character should be able to walk there. Also had a problem where the character could walk through some walls and trees because I didn’t detect them.
Next entry: Pathfinding
Previous entry: First Look

















