joyrider
Active Member
Hey guys,
I'm completly trying something new a little top down view race game check it out here (STILL VERY WIP) : http://www.youtube.com/watch?v=-CMPWrYSwPQ
I already got a ghost car implemented which isn't that hard, and i'm trying to create a cpu player (the blue car). but he's almost always doing the same thing. I think it's because i'm using a simple method to keep the car in the middle of the track. You see i take +45 & - 45 degrees angles from the current cars position and then count the steps it takes to reach the borders, if the left side has more steps, the car turns left and vice versa. It seems to work great but i'm having problems with the levels with sliding doors. but it doesn't seem to be a good approach because the car always drives the same line on the track.
Do any of you know of a better way to make a cpu player. It should work on any level i give it too. Because you'll be able to create your own levels just by using any image editor.
I think i'll start with a time trial only version, and make an option to save the ghost car so you can share ghost cars with each other and see how other people drove on that track and what their best time was
anyway if someone can shed some light on how to create "realistic" cpu players for this kind of race game let me know
I'm completly trying something new a little top down view race game check it out here (STILL VERY WIP) : http://www.youtube.com/watch?v=-CMPWrYSwPQ
I already got a ghost car implemented which isn't that hard, and i'm trying to create a cpu player (the blue car). but he's almost always doing the same thing. I think it's because i'm using a simple method to keep the car in the middle of the track. You see i take +45 & - 45 degrees angles from the current cars position and then count the steps it takes to reach the borders, if the left side has more steps, the car turns left and vice versa. It seems to work great but i'm having problems with the levels with sliding doors. but it doesn't seem to be a good approach because the car always drives the same line on the track.
Do any of you know of a better way to make a cpu player. It should work on any level i give it too. Because you'll be able to create your own levels just by using any image editor.
I think i'll start with a time trial only version, and make an option to save the ghost car so you can share ghost cars with each other and see how other people drove on that track and what their best time was
anyway if someone can shed some light on how to create "realistic" cpu players for this kind of race game let me know
Last edited by a moderator: