Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mangax

Pages: [1]
1
Support / doubling size of slicedsprite dimensions issue!
« on: August 10, 2013, 10:45:52 pm »
hello! i looked around in forum and i didn't see anyone mentioned this.

i have a sliced sprite as background displayed behind content, i wanted to make user able to zoom in the content.
i multiply content size (x and y) by 2, so it doubles the size for zoom in effect easily.

i tried to do same for the sliced sprite (so it retains background design around content), by doubling the amount of x and y in dimensions attribute.
but strangely, the sprite expanded more than the intended size!!

they both were perfectly aligned before zooming in, but after multiplying dimensions by 2,,, it was more in x axis and even more in y axis! it is very noticeable!

isn't multiplying by 2 means it will expand exactly twice the size?
to fix this issue i was forced to multiple x by 1.95 and y by 1.88 so it doesn't expand too much.

i dunno why this happened? any ideas?

Pages: [1]