Is it possible to use getImage in world class? I have a code in actor class and I want to move it to the world class. However getImage doesn't work in the world class. Is there any code similar to getImage that I can use in World class?
public class Background1 extends Actor
{
public void act()
{
super.act();
}
public void scroll()
{
if(getY()>getImage().getHeight()*1.5)
{
setLocation(getX(),getWorld().getHeight()-895);
}
setLocation(getX(),getY()+5);
}
}