im trying to add a powerup that satys at the world for about 10 sec guys who can help me
// add this instance field to the class
private int counter = 600;
// modify (or create) your act method
public void act()
{
counter--;
if (counter == 0)
{
getWorld().removeObject(this);
return; // causes immediate exit from method
}
// the rest of your act method, if any
}