Please help me, now I'm trying to make a sustitution of classes, however, when I want to put the new Object it opens the Terminal Window, this is the error line.
mundo.addObject(mundo.ka,getX(),getY());
mundo.addObject(mundo.ka,getX(),getY());
public class cai extends animator
{
int a,b,c;
MyWorld mundo;
public cai()
{super("ni",".png",6);
}
protected void addeToWorld(World w)
{mundo=(MyWorld)w;
}
public void act()
{
play();
retardo=7;
if(isEnd())
{mundo.addObject(mundo.ka,getX(),getY());
mundo.removeObject(this);
return;
}
}
}