This site requires JavaScript, please enable it in your browser!
Greenfoot back
Rayray
Rayray wrote ...

2015/3/28

how to stop car actors if there is already a car actor moving through a crossroad

Rayray Rayray

2015/3/28

#
tried using getIntersectingObjects(crossroad.class) but not working when a car actor has finished passing throught the crossroad detector another car should be allowed to go through and turn if needed and so on for more cars
danpost danpost

2015/3/28

#
Not easily. You may want to look at the code of my Traffic Control scenario. Just run it and click on the buttons along the bottom within the scenario.
Rayray Rayray

2015/3/28

#
thanks!
You need to login to post a reply.