1
Support / Re: Best way to retrieve 'native' size of a sprite prior to instantiating one?
« on: December 29, 2013, 04:10:49 pm »
Thanks for the reply.
I'm not sure I understand this though: "bounds will be the same / close enough as long as your source images are the same size", as what I have here doesn't agree with that statement. The two source images aren't the same size.
I'm using the 2x and 4x platforms, with 2x as the default.
grid-block-small@2x is 80x80 pixels
grid-block-small@4x is 160x160 pixels
Irrespective of which platform is loaded in the inst property, I get a bounds of 80x80 for sprite 'grid-block-small'. That is the desired behavior for what I'm doing, but is that correct?
I'm not sure I understand this though: "bounds will be the same / close enough as long as your source images are the same size", as what I have here doesn't agree with that statement. The two source images aren't the same size.
I'm using the 2x and 4x platforms, with 2x as the default.
grid-block-small@2x is 80x80 pixels
grid-block-small@4x is 160x160 pixels
Irrespective of which platform is loaded in the inst property, I get a bounds of 80x80 for sprite 'grid-block-small'. That is the desired behavior for what I'm doing, but is that correct?
