Skip to main content

AnimationTimer not ticking in JavaFx 2.0

3 replies [Last post]
lestercloete
Offline
Joined: 2011-07-08
Points: 0

I am trying to use the AnimationTimer in JavaFX 2.0 as a game loop, but I can't get the timer running. It tick when I first open my game, and when I move the screen around to force a refresh. I runs correctly when I use a Timeline anywhere else in the game, but not without it. Can anyone help me? Is it something to do with the animation pulse not triggering? What do I need to do to keep the AnimationTimer running on it's own?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
michael_heinrichs
Offline
Joined: 2007-11-15
Points: 0

Hi lestercloete,

this sounds like an old bug that was fixed more than a month ago. Which version of the JavaFX SDK do you use? Is the issue reproducible with the most current version?

- Michael

lestercloete
Offline
Joined: 2011-07-08
Points: 0

Thanks Michael, I have downloaded the latest SDK and it works perfectly.

michael_heinrichs
Offline
Joined: 2007-11-15
Points: 0

Hi lestercloete,

this sounds like an old bug that was fixed more than a month ago. Which version of the JavaFX SDK do you use? Is the issue reproducible with the most current version?

- Michael