2D Toolkit Forum

2D Toolkit => Support => Topic started by: test84 on March 19, 2014, 06:19:22 am

Title: Best solution for large backgrounds that are not tilable?
Post by: test84 on March 19, 2014, 06:19:22 am
Hi,

I have some big full screen images like 960x640 that doesn't have repeating parts so dicing won't help. Was wondering which tk2d's data type would do them best. I read your other post and used "Create sprite from image" method, but was wondering if there is a better solution.

Cheers.
Title: Re: Best solution for large backgrounds that are not tilable?
Post by: unikronsoftware on March 19, 2014, 10:12:36 am
Thats what create sprite from image is for.
Title: Re: Best solution for large backgrounds that are not tilable?
Post by: whynotmatt on March 26, 2014, 02:13:29 pm
How does this work with multi-platform sprites?
Title: Re: Best solution for large backgrounds that are not tilable?
Post by: unikronsoftware on March 27, 2014, 10:38:19 am
It doesn't as it doesn't use the sprite system. Thats the whole point - for backgrounds you more likely to want to create multiple versions for various aspect ratios, much more so than game sprites where 1x, 2x and 4x will likely suffice. For the backgrounds, just load the appropriate one using Resources.Load and either assign to the SpriteFromTexture component or create a sprite at runtime.