Can i delay just one actor and not the whole scenario?
//class member variable
long starttime = System.currentTimeMillis();
public void act()
{
long endtime = System.currentTimeMillis();
if((endtime - starttime) < 3000)
{
//We have not waited 3 seconds yet so exit
return;
}
//reset the start time
starttime = System.currentTimeMillis();
//rest of act
}public class YOURCLASS
{
int delay;
public void act()
{
if(delay < 15)
{
delay++;
return;
}
else
{
delay = 0;
// What should delayed do here. example:
Code1();
Code2();
}
}
}