My first question is the one mentioned in the title. So why can't i write (in my Actor Arrow)
My second question is why do i need the (Stickman) ? I tried it like this:
but it only works if i do it like this:
but what does the (Stickman) do?
World.removeObject(this);
public int StickmanX() { Stickman stickman = getWorld().getObjects(Stickman.class).get(0); return stickman.getX(); }
public int StickmanX() { Stickman stickman = (Stickman)getWorld().getObjects(Stickman.class).get(0); return stickmant.getX(); }