2D Toolkit Forum

2D Toolkit => Support => Topic started by: unity_stark on September 04, 2013, 04:14:22 am

Title: Can I use one sprite collection for Android and iOS, but different scale?
Post by: unity_stark on September 04, 2013, 04:14:22 am
Hello,
Can I use only one sprite collection for both devices, and each one has its own images scale?
For example, on iPhone 4S, the images is too small; however on Samsung S3, the images just fine.
So I need to increase the scale on iPhone and I don't want to create another sprite collection to handle this.

any suggestions?

Title: Re: Can I use one sprite collection for Android and iOS, but different scale?
Post by: unikronsoftware on September 04, 2013, 09:51:20 am
Nope, but you can use the tk2dCamera to change the camera settings - i.e. the sprites can be larger or smaller on any platform. Alternatively, if you only want to do this on one sprite and not all of them, you can create a second copy of the same sprite in the same sprite collection - set up the scale value in the sprite collection editor appropriately. The sprite will only be put in the atlas once, so theres no problem in doing this.