Race game opponents AI
[ February 13, 2005 ] by Mike Mountain
From Mike's words: I've been asked lots of times how to do AI for race game opponents and this is the solution I came up with - it's not without it's bugs however - as if the opponents encounter a track angle tangental to their trajectory the code will point them back to the x/y coords of the track, this would have to be modified to point the cars in the correct direction if this example is to be implimented.




Download the source code of this prototype



 
 
Name: Mike Mountain
Location: UK
Age: 29
Flash experience: 6 years
Job: Multimedia specialist
Website: http://www.mmountain.34sp.com/
 
 
| Homepage | News | Games | Articles | Multiplayer Central | Reviews | Spotlight | Forums | Info | Links | Contact us | Advertise | Credits |

| www.smartfoxserver.com | www.gotoandplay.biz | www.openspace-engine.com |

gotoAndPlay() v 3.0.0 -- (c)2003-2008 gotoAndPlay() Team -- P.IVA 03121770048