Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFx moving car animation

944386Jun 18 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2012
Added on Jun 18 2012
0 comments
664 views