I am trying to make it so character and character2 can see if their x value is greater or less then the others x being their position on the stage but I am struggling to make it work any advice
Actor c2 = (Actor)getWorld().getObjects(character2.class).get(0);
int c2x = ((Actor)getWorld().getObjects(character2.class).get(0)).getX();