#Spritesheet GUI help

1 messages · Page 1 of 1 (latest)

broken musk
#

i have a NinePatchRect that ive set to use an atlas textue. i dragged and dropped a sprite sheet into th atlas texture and edited the region. then i edited the region on the ninepatchrect to get it to display.

This works and it does display/size, but its HUGE, each pixel is 50px wide, and id like to be able to shrink it down so its more manageable.

any recommendations would be greatly appreciated.

toxic quail
#

did you set the ninepatch margins? looks like this is being stretched in its entirety rather than slicing the corners and sides

#

also - you shouldn't need to make an atlastexture first to use the texture in a ninepatch - the region editor would let you do that slicing already

broken musk
#

Thanks for the reply! Here is the atlas region setting:

#

here is the 9 patch:

#

i have the 9 patch margin set to 0, if i change the number to say 5, then it removes the border entirely

toxic quail
#

you want these dotted lines to be slicing your corners and sides

broken musk
#

ive done it that way and they vanish as well

toxic quail
#

show what you have

#

as in - displaying on the viewport

broken musk
#

oh, i see what my issue is, it doesnt dissappear it just changed to 5 pixels wide and it got lost in the 1200px wide view

toxic quail
#

yeah - as the corners would be using the original size of the texture, without stretching

broken musk
#

sorry about that, do you know a way to scale up the margin?

toxic quail
#

you would need to scale up the image itself basically

#

ninepatch uses the original texture size on the margins, and stretches the middle

broken musk
#

ah, ok, that is unfortunate but makes sense