Page 1 of 1

Problem with anchor

PostPosted: Sun Mar 23, 2014 8:56 pm
by Sikro
Hello,

I have a problem with my buttons.
I enabled "anchor" for them to be fixed, but I have a problem with an effect.
When pressing a button, the size (height and width) increased by 10. But because of the anchor, the size increases in the bottom & the right, not the 4 sides.

puu.sh/7GN1U.jpg

Any idea guys ?

Re: Problem with anchor

PostPosted: Mon Mar 24, 2014 2:27 am
by Sikro
Up :D

Re: Problem with anchor

PostPosted: Mon Mar 24, 2014 5:20 am
by Aphrodite
Sikro wrote:Up :D


I can think of two potential solutions:

-Do not use anchor, but instead place the sprite using the ViewportTop; ViewportBottom; ViewportLeft; ViewportRight expressions or
-Replace the sprite accordingly, for exemple if you grow it of 10px width, move it 5px to the left, and same goes for height and going up.

Re: Problem with anchor

PostPosted: Mon Mar 24, 2014 11:10 am
by Sikro
Thank you :)