Entity parent = new Entity();
attachChild(parent);
Sprite mountainsSprite = new Sprite(0, 0, WIDTH, HEIGHT, mountainsTextureRegion, mEngine.getVertexBufferObjectManager());
mountainsSprite.setPosition(0, 0);
parent.attachChild(mountainsSprite);
Sprite starsSprite = new Sprite(0, 0, WIDTH, HEIGHT, starsTextureRegion, mEngine.getVertexBufferObjectManager());
starsSprite.setPosition(mountainsSprite.getX()+ mountainsSprite.getWidth(), 0);
parent.attachChild(starsSprite);
ParallaxLayer parallaxLayer = new ParallaxLayer(camera, true, 4000);
backgroundParallax.setParallaxChangePerSecond(8);
backgroundParallax.setParallaxScrollFactor(1);
backgroundParallax.attachParallaxEntity(new ParallaxEntity(10, parent, true));
Here what i have done is added the required sprites to move in sequence to an entity.Then I made this entity as parallaxEntity to Parallax background