I have a little problem concerning JavaFX. I'm currently doing a User Interface for the ants algorithm.
I would like to chain multiple TranslateTransition
in a loop. The problem is that only one of these transitions is displayed instead of all TranslateTransition
in the order of creation.
while(condition){
//some updates...
TranslateTransition tt = new TranslateTransition(Duration.millis(2000), myObject);
tt.play();
}
Is there a way to make sure that previous animations are finished before playing new ones ? Thank you !