Hello Guest

Author Topic: Best solution for large backgrounds that are not tilable?  (Read 2265 times)

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Best solution for large backgrounds that are not tilable?
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Best solution for large backgrounds that are not tilable?
« Reply #1 on: March 19, 2014, 10:12:36 am »
Thats what create sprite from image is for.

whynotmatt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Best solution for large backgrounds that are not tilable?
« Reply #2 on: March 26, 2014, 02:13:29 pm »
How does this work with multi-platform sprites?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Best solution for large backgrounds that are not tilable?
« Reply #3 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.