Animation randomly changing speed problem - Please Help!
Hi, Can somebody please explain to me why my java animation of a simple oval bouncing about the screen randomly changes speed? Sometimes it goes normal, sometimes slow. Even though I had a specific speed set. I have tried using a Timer and actionListener and also a Thread with the run method. The same thing happens.
Is it because the time is never precise so sometimes the code might execute sooner or later than it should?
Please I need to understand why it just randomly changes speed.