Hello,
I have a white background/black border - sprite which can change its size. How do I keep the border always the same size? (exactly 5 pixel thick anytime)
thank you
Try using the 9-patch-object instead of the sprite-object, It is specifically meant for this..
the problem with the 9-patch-object is, that it changes its shape in certain positions. Instead of a square it looks like this:
Strange..
What image are you using and what are the settings?
the standard ones. But it doesn't matter how I change it..it always ends up weirldy when i change the position and size :/
I can't imagine why..
I have had no issues at all..
Try this:
Download this 9-patch.png
create a new 9-patch object
load the png
keep all the settings as is
it should deform perfectly while keeping the edges the same
well then try the following. Move the bottom right corner from your picture to the left side of your left bottom corner and it happens the same
Haha..
Yes using negative values for width and height won't work..
There is absolutely no reason to do that, so that shouldn't be an issue..
Develop games in your browser. Powerful, performant & highly capable.
yes, there is a reason to do that but nvm..thank you