I`m developing a J2ME game for a college project.
I need a function to run a certain time e.g. every tenth of a second and threads are the only way to do this, i`m told.
but while I can create the thread in the class that extends from canvas with
Thread myThread=new Thread(this);
and then get the thread to run using
myThread.start(); or myThread.run();
and then get it to sleep with
Is there anyway of getting the thread to run again itself after the sleep period is over or do you have to call the run() function every time you want it to run