I have my game up (listed in Your Games Here) called Rimscape, located at:
http://www.gamelizard.com/webstart/rimscape.php
It’s a game with space fighting in it, and I think I have the AI decently coded in terms of combat. However what I’ve been TRYING to do is make some sort of adjustment to their combat skills in relation to the difficulty level, which goes from 1 to 10.
One thing I tried was, in the routine where the ship determines which way it needs to face, I’d add a random angle left or right, which was scaled by the difficulty so that lower difficulties would result in a greater value added to shift the angle. So essentially what that did was every frame the ship would make its calculations and adjust its aim toward the ship, but offset by a certain amount so that the easier the difficulty, the worse their aim.
This did in fact make the game easier, but it looked silly. Every frame the ships would wiggle back and forth because the random factor would be different every frame and that caused some problems with it being sensible, and sometimes a ship would so often think that it was “way off aim” that it would rarely fire at a target sitting still right in front of it.
So if you guys could just shoot at some stuff for a bit (you have to do some actual damage to a ship otherwise most of them who are set to friendly won’t attack you until you really convince them you’re NOT friendly ) and try to help me come up with new ideas to adjust how they fight, that’d be great!
Even if your suggestions aren’t really about making the difficulty change, just about modifying the AI, I’d greatly appreciate them all! Thanks