Posted By
|
Message
|
Adam (Wolverhampton Studios)
Registered 14/10/2003
Points 497
|
18th October, 2003 at 07:56:37 -
I have my own way of doing the trafic system but i was wondering what you would do....Mor info on GTAW look in the preview section.
Wolverhampton Studios
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
18th October, 2003 at 10:03:01 -
i'd probably use a collision mask to detect any obstacles the car was facing, and chose a random direction to go if there was a T-junction or a crossroads or something.
althought it'd probably end up harder than that, as i guess you'd have stuff like traffic lights and you'd want to avoid collisions and the like. hmm.... it's one of those things that you can plan out in your head, and then it's not as easy when you actually try to program it.
www.thenatflap.co.uk
|
Adam (Wolverhampton Studios)
Registered 14/10/2003
Points 497
|
18th October, 2003 at 20:39:48 -
Any more idears
Wolverhampton Studios
|
Lew
Registered 06/01/2002
Points 1014
|
19th October, 2003 at 14:18:23 -
"I have my own way of doing the trafic system but i was wondering what you would do"
AKA, I'm stuck help me.
I'd have a sensor on the cars left side and one on the right to detect collisions with walls/cars etc. Then i'd have a sensor on each turning to say turn right/left/pick one and a flag on each sensor to say red light/green light. To be honest though, it's gonna be a hell of a lot of objects, so i'd look into some sort of object mapping system, where the only objects in the frame are the ones on the screen, the rest are handled by variables and are only created when the camera 'see' them.
<--intelligent, witty comment here-->
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
19th October, 2003 at 15:30:04 -
yeah, you definetly need some system to only load what the player can see, otherwise you'd get well too many objects there.
www.thenatflap.co.uk
|
|
|