![]() |
Move rectangle from position += 1 without flicker in applet
Hi
I´m trying to move a filled rectangle by increasing the x-position by one in a applet, but it flickers. I´m not sure if the code below is the right way to go but this is how I have programmed? Code:
public class Game extends Applet implements RunnableAs I said, it flickers! How do I solve this? |
I have a question for you before I answer, are you using RTP, because I have heard rumours that the ready to program IDE gives the flickering problem. Personally I do not make java applets so I cannot help you out there.
What I suggest is to do a quick search on google if there is an external class or a JDK class that can be imported and offers to load the java animations in the computer's RAM so the flickering disappears. |
just increase the time limit for the thread.
here you have set it to 100..add a few more zeros and you would do fine |
| All times are GMT +1. The time now is 03:37 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.