In creating Star Marine 3, the third incarnation of the first game I ever made with Construct, I got a little sidetracked and I put the game on hold. I had only done the AI, and it was a little buggy anyway.
This here is a example/tutorial of top down combat AI that uses path finding and shooting. Each AI soldier is made up of a bottom and top object, one controls moving while the other controls blasting. They aren't very advanced yet, they don't use cover and shoot through walls, but the basics are here. This is not a template, rather an example of how to create advanced top down AI.
It's thoroughly commented, although it might be a little difficult to understand. Has a basic scenario set up between the friendly AI and the enemy AI, but you can move the walls about and the AI will adapt. The only bugs are with Construct choosing which AI bottom object and which AI top object go together. Sometimes there is a issue that two AI top objects will stick on a single AI bottom object, giving that unit double health and making another soldier not move at all. I'm not sure how to resolve that issue...
It would be cool to create a plug-in that offered simple easy functions to create AI like this, put I have no idea how to do that. So this will do for now. <img src="smileys/smiley1.gif" border="0" align="middle" />
Download (500KB):
mediafire.com