Open MahmoudShaltoot opened 6 years ago
when i tried to insert some of discs after each other ,Only red or yellow discs are inserted that's because of the animation that take 0.5 sec ,So this statement
redMove = !redMove;
can't be reachable if you clicked the mouse in duration less than 0.5 sec ,This line of code should be executed before the animation lineTranslateTransition animation = new TranslateTransition(Duration.seconds(0.5), disc);
when i tried to insert some of discs after each other ,Only red or yellow discs are inserted that's because of the animation that take 0.5 sec ,So this statement
redMove = !redMove;
can't be reachable if you clicked the mouse in duration less than 0.5 sec ,This line of code should be executed before the animation lineTranslateTransition animation = new TranslateTransition(Duration.seconds(0.5), disc);