hello i want to develop AI car(opponent) in car race game what should be my direction to develop them with less complexity because i don't have any idea. because the player car is moving on the scrolling track plz suggest me should i have to use relative motion or way point concept but that should also be change on the scrolling track (i.e. player car movement)
A:
A simple first pass would be to just "cheat" and keep the opponent car within X distance of the human car, and then slow it down if the human ever gets too far behind. You vary this behaviour with the difficulty level. This is kind of how Super Mario Kart for SNES works.
If you want something more realistic then I think egarcia's opensteer idea sounds like an interesting way to go.
Shaggy Frog
2010-05-24 07:01:49