I have a sprite that is bigger than its texture. I would like to stretch the texture to the sprite bounds. Right now it stretches only the bottom and right edges in a repeating pattern, with the size of the original image seemingly unchanged. How can I achieve this? Neither sprite.setWidth()/sprite.setHeight() nor sprite.setRegionWidth()/sprite.setRegionHeight() do the trick.
Show us your current code.
I figured it out. It’s sprite.setScale(x,y).
Thank you anyway!