RTS AI

Oct 13, 2013 at 10:40pm
closed account (1v5E3TCk)
Hi guys,

I want to make a RTS game but I dont have any idea about how can I code an AI for RTS games. Have you got any ideas about how to do that?
Oct 14, 2013 at 12:44am
AI is an extremely broad and complex topic.... and "a RTS game" is an extremely generic description of what you're trying to do.

Best advice I can give you is try to write code which reflects human logic. IE: examine all visible units and move your units where they'd be most effective.
Oct 14, 2013 at 5:01am
The first year program of the school I'll attend lists the following under AI
- Finite states machines
- Fuzzy logic
- Pathfinding with A*
- Chase and evade

So far I've only studied pathfinding and it's not that hard, so I'd recommend that to begin since it's something you definetly need in an RTS. I used http://www.policyalmanac.org/games/aStarTutorial.htm and the wikipedia page for A*.
Oct 14, 2013 at 6:11pm
closed account (1v5E3TCk)
Thanks for your advice maeriden I willl read it.

I will make a game like age of empires 2 Disch.
Last edited on Oct 14, 2013 at 6:12pm
Oct 14, 2013 at 6:28pm
May i ask what API are you going to use?
Oct 15, 2013 at 9:42pm
closed account (1v5E3TCk)
I will use SFML library and a gui library which is not certain yet.
Topic archived. No new replies allowed.