Original Post
I have discovered a (potential) problem with my AI. Despite the fact that I have not written most of it yet, how do I make it decide on one course of action and stick to it? It is called every frame, so what is to stop it from sending out an attack party, which changes the AI inputs, which causes it to reconsider and call back the attack force, which makes it go back to square one and send it out again.... Even if it doesn''t get caught in a loop like this, it may end up attacking one structure, and because the enemies retaliate, it attacks a different one, so it never actually kills anything. My game is a normal top-down RTS in space (kinda like a 2D homeworld
)
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.