This is the main thing I was dreading when I decided to make a kart racing game, but I have to tackle it at some point- artificial intelligence. I’m not really sure where to start, and there’s apparently a lot of different methods of implementing it.
It would help if someone could suggest different AI methods or post samples, so I can determine which would work best for my game (the WIP thread is in my signature).
If it helps, here is what I’m looking for in an AI system-
-no rubber-band AI. Not sure if that’s supposed to be easy or difficult, but it’s overall frustrating and unfair to the player. coughcoughMarioKartcough
-I’m looking to have about 8 karts running at once (including the player). [I remember SolarLune found a method of looping logic through multiple objects for a massive speed increase- hopefully I can find a way to implement it.]
-I’d like the karts to also use the vehicle wrapper, to ensure that the player kart and AI karts are all subject to the same speed/turning/orientation constraints.
-AI karts not only have to follow a track, but have to pickup and use power-ups/items appropriately (ie. picking up a projectile weapon and attempting to shoot it at another kart).
-I’m emanating a similar style to Diddy Kong Racing (N64) for the art style and mechanics, so this may also help with determining AI.