Problem 'sleeping' Threads
Hi guys, I'm trying to do a tiny spaceship game, but the problem is I want to sleep an enemy, but with the method sleep(int milliseconds) from Thread, it sleeps the "AWT-EventQueue-0" Thread :(doh): (I do implement the MouseListener and MouseMotionListener Interfaces for move the spaceship). So, how can I sleep the enemy Thread instead the EventQueue?
Thanks and sorry for my bad english.
Re: Problem 'sleeping' Threads
This is a duplicate thread - as in thread in the forum, I mean. I'll close and move jammas615's post.