I have no experience in AI at all, but I would like to know how I could do this?
Even if the AI just followed a path how could I do this?
closed as not a real question by Trevor Powell, michael.bartnett, Josh Petrie, Noctrine♦ Oct 29 '12 at 17:47
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
My first thought naive approach would be to create a list of points corresponding to the coordinates of the track curves (probably more points would be needed to prevent the AI keep going against walls after an unplanned collision with another car). When the AI car is close enough to the next point, you would put it (the point) in the end of the list. All the AI car would need to do is to always go in a straight line in the direction of the next point in the list.
Yes, make a type of path that the car follows. First, you need to make the car just drive. (Make the car drive forward forever). Create a rectangle at each turn on the track then make if statements for when the AI car intersects them. When the AI intersects them(the rectangles) make it rotate according to where it needs to turn.