Try the following:
spriteBatch.begin(); //background seaTexture = new Texture(px); Color c = spriteBatch.getColor(); spriteBatch.setColor(cr, cg, cb, 1f); //set alpha to 1 spriteBatch.draw(seaTexture, 0, 0, 480, 320); //foreground c = spriteBatch.getColor(); spriteBatch.setColor(cr, cg, cb, .3f);//set alpha to 0.3 spriteBatch.draw(blockTexture, 50, 100, 120, 120); spriteBatch.end();
source share