Hi,
I am trying to make an actor appear in the world when i perform an action. I get this nulPointerException when I try it. I have tried calling a method that will add the actor (addObject(..., ..., ...) present in the world class.
I have tried
world -> WorldClass
public void addActorToWorld(){
Actor actor = new Actor();
addObject(actor, 300,460);
}
Actor class
.
.
.
((WorldClass) getWorld()).addActorToWorld(); //source of nullPointerException
}


