I am trying to get the height and with of the world inside an actor constructor but it won't let me. HEre is my code:
public class Alligator extends Actor
{
int worldWidth;
public Alligator()
{
System.out.println("Alligator created");
worldWidth = getWorld().getWidth();
}

