JavaFx moving car animation
I am a newbie here and to Java in general. I have some OO programming experience and Java experience.
I would like to prepare a JavaFx program that would eventually have Cars moving on road. The road would have a traffic signal where the cars should stop and then proceed. I am looking at a simple implementation - a single road with cars moving in one direction and has a pedestrian crossing signal.
My questions are as follows,
1. I was wondering if path animation would be suitable for this project? If not, what other approach can be used?
2. If path transition can be used, how can we make the cars (nodes) stop at the signal and then proceed? The traffic signal would be controlled by another piece of code which would emit "True" or "False" at certain time intervals.
Any tips/guidance would be really appreciated.
Thanks