Good day! I try to draw the background in the project, I do everything as in the documentation, i.e. I draw in the render method in turn
drawStars(); drawPlanet(); those. first drawStars () method must be drawn, then drawPlanet (), which will be on top of drawStars (). But for some reason, everything happens the other way around drawStars () is superimposed on top.
Method code
private void drawStars() { stars.setSize(136, 125); stars.setPosition(0, 0); stars.draw(batch); }` private void drawPlanet2() { batch.draw(planet2, 0, Gdx.graphics.getHeight() / 8, movPlanet.getWidth(), movPlanet.getHeight()); } What could be the problem? Thanks a lot in advance!