moving car on the road with javascript
<p>I am new to javascript.I want to move a car on path with arrows.I created the path with svg and made functions for the arrows.They are ok.But I dont know how will the car recognize the path?If I should check the path's coordinates for each move, my path consists of different shapes how can I control it?I found some examples but they make the movement as motion not with each key press. Please give me an idea how to move the car only over the road..</p>
