Hello Guest

Author Topic: @2x & @4x Sprite storage  (Read 4302 times)

gonzalez.martin90

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
@2x & @4x Sprite storage
« on: December 30, 2014, 01:51:23 pm »
Hi everyone!
 I'm using the Current resolution feature for the first time and it works. But it only works if @2x and @4x sprites are in the same folder? Is there any way to keep tidy in a @2x folder (all 2x sprites) and another folder for @4x?
 I tried and tk2d throw an error saying that cannot find the @4x for that current resolution.

Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: @2x & @4x Sprite storage
« Reply #1 on: January 03, 2015, 01:41:48 pm »
Hi, you can have it as a 2x / 4x folder, not a @2x or @4x folder.
http://2dtoolkit.com/docs/latest/advanced/platform_specific_sprite_collections.html

Check the section "asset paths"

gonzalez.martin90

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: @2x & @4x Sprite storage
« Reply #2 on: January 05, 2015, 07:44:07 pm »
Hi, you can have it as a 2x / 4x folder, not a @2x or @4x folder.
http://2dtoolkit.com/docs/latest/advanced/platform_specific_sprite_collections.html

Check the section "asset paths"

Nice! It works!