Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
11th January, 2004 at 05:06:47 -
Hey everyone,
I've been working on a project with Yuyu for a little while now. It's a gta style clone and we've done a fair bit. We have tried to make it as flexible as possible, including map makers, customizable graphics. But we can't get around the traffic and the Peds. We've made several small traffic engines, failing somewhere in each. I've gotten very close in one, and it worked great until I overcomplicated it with roads and detectors going everywhere.
If you know of a good traffic engine or could shed any light on the idea, please feel free.
The only game I can remember doing something like this is Harry Cars (or whatever it was) which used detectors at every junction showing what way the cars could go, and they turned at random.
I've never played GTA but I've know that Jak II has an engine similar to it.
Like Circy said, use the turning detectors. For pedestrians, give them a more random movement.
oh god. the memorys of taxi dash ar coming flooding back.
im attempting to make one now using the direction calculator. its not going well. ill keep trying though.
Well, if you really want to make it good, you should have the cars change lanes, pull in and out of parking spots, etc. You would need to use fastloop and link detectors to each car. The cars would then use the detectors to see if it's safe to change lanes, turn right on red, etc. The cars would simply drive around randomly, changing lanes every once in awhile. I actually don't think it's that complicated, just very time consuming to program. The hard part would be programming the cars to navigate a parking lot. That would require quite a bit of work to pull off.
99 percent chance that the above post is 100 percent correct.
you could get some ideas if you look at the ai in games like grand theft auto.
the normal traffic is simple.
they just stop when they get too close to other cars and red lights and turn at the right time.
the police cars are more tricky to code because they chase you when you're wanted and aviod other cars by changing lanes.
hey, that reminded me of this little train simulation i started.
Works a treat, I just got bored of it too soon.
edit: what bastard admin got rid of my amazing signiture?
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
11th January, 2004 at 15:12:22 -
eh? we can't edit signatures. you need database access.
then it was obviously one of the admins with that power
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Kris you can take comfort in the fact that they also changed my rating! Or you can laugh at me, either way is good.
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.