1
Support / Re: Changing SpriteCollections with multiple platforms
« on: June 25, 2014, 12:07:22 am »
That's what we're currently using and it creates this folder and prefab structure - I've tried to create an example below. It's not that we're having trouble switching platforms, but knowing where the sprite collections are located and what their names are. We have 5 separate collections, so this structure repeats for each collection type.
-Collection 1
--collection1 (prefab)
--collection1 data
---collection1@1x (prefab)
---collection1@1x Data
---collection1@2x (prefab)
---collection1@2x Data
---collection1@4x (prefab)
---collection1@4x Data
same for collection2, collection3, etc.
Anytime during the game I may need to change the sprite collection of all sprites on screen to be another collection, so I'll need a list of references to all 5 collections sitting somewhere I can easily access. I was hoping there was a method somewhere in the tk2d files I could pass in the normal collection name (I.E collection1 without the @1x, @2x, @4x) and get back the appropriate tk2dSpriteCollectionData, but it doesn't seem like one exists.
In-addition, since the sprite collection must be located outside of the resources folder, I don't know if I'm guaranteed that, for example, collection 3 is included if nothing is referencing that collection.
Hopefully I'm making sense, I feel like my description is less than adequate.
-Collection 1
--collection1 (prefab)
--collection1 data
---collection1@1x (prefab)
---collection1@1x Data
---collection1@2x (prefab)
---collection1@2x Data
---collection1@4x (prefab)
---collection1@4x Data
same for collection2, collection3, etc.
Anytime during the game I may need to change the sprite collection of all sprites on screen to be another collection, so I'll need a list of references to all 5 collections sitting somewhere I can easily access. I was hoping there was a method somewhere in the tk2d files I could pass in the normal collection name (I.E collection1 without the @1x, @2x, @4x) and get back the appropriate tk2dSpriteCollectionData, but it doesn't seem like one exists.
In-addition, since the sprite collection must be located outside of the resources folder, I don't know if I'm guaranteed that, for example, collection 3 is included if nothing is referencing that collection.
Hopefully I'm making sense, I feel like my description is less than adequate.