Hello Guest

Author Topic: Removing textures included in atlas when building  (Read 3742 times)

mamamia

  • Guest
Removing textures included in atlas when building
« on: January 08, 2013, 11:12:27 am »
Hi,

I have noticed all textures I include in atlases are exported in the final executable too. Is there anyway to avoid this? File size is too much.

Thanks in advance.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Removing textures included in atlas when building
« Reply #1 on: January 08, 2013, 12:49:29 pm »
If they are included, it is usually caused by one of two things:
1. You have the sprite collection in a directory called resources (even if it is a subdirectory under a resources directory)
2. You have a live reference to a tk2dSpriteCollection object (not a tk2dSpriteCollectionData) somewhere in your game.

mamamia

  • Guest
Re: Removing textures included in atlas when building
« Reply #2 on: January 09, 2013, 01:33:52 pm »
Thanks a lot for this.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Removing textures included in atlas when building
« Reply #3 on: January 09, 2013, 01:38:54 pm »
What was the issue on yours?

In 1.90, there is a clear warning when a sprite collection is in a resources directory - it won't let you edit a sprite collection until you move it out. If there are any textures in a resources directory, you are presented with a warning box before you start editing it.
Hopefully that will address those issues permanently.