Since I have used the thread.sleep() method, my graphics is updating way to slowly. How would I convert this into a timer?
The point of the applet is just to move the black dot around the screen...
Type: Posts; User: all_pro
Since I have used the thread.sleep() method, my graphics is updating way to slowly. How would I convert this into a timer?
The point of the applet is just to move the black dot around the screen...
Alright so here is my modified code. It now does what I wanted but there is a white flash every time it moves, and you can only see the dot on like every tenth move. How can I make the animation...
This is the code that I have written. The goal is that if you hit the arrow keys, the dot will move whichever direction you press. What is happening is that it will draw a dot in the middle of the...