android - Change the color of a texture -
is possible change color of texture random color , how can if it's possible? think way create sprite sheet object in different colors , change region randomly, don't know sure.
if have white texture can change spritebatch colour tint image.
batch.setcolor(new color(r,g,b,a)); batch.draw(texture, x, y); batch.setcolor(new color(1,1,1,1)); // reset default colour
Comments
Post a Comment