|
-
[Help] AI Opponents in Racing Game (AS2)
Hi Guys,
I am building a racing game for my client, freelance.
Now this is my first time using Flash to create any kind of game at all, so I've kept it simple and so far so good, really. I've managed to learn how to control the vehicle and prevent it from running off the page, and set up lap timers.
Now my client knows that this is my first time doing this and that I will come across bumps in the road, which this is the first of.
With my AI opponents I figured I could just animate them round the track and change the speed of the animations after I have tested the speed I can get round the track in the 'Player' car. I will have 3 opponents and obviously there will be a fast/medium/slow opponent.
My main problem is sorting out the coding of what position the player is in. I REALLY don't know where to start when it comes to this. I read something about checkpoints which you would have a lot of on the track, and then it would update your position compared to the times it would take for the AI cars to get round.
But I really don't know what to do here and I've been searching for tutorials and cannot find anything!
Any help is appreciated, or if I have missed a tutorial somewhere explaining how to do this, please call me whatever you want and give me a link to it 
Much Appreciated!
Oli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|