Hello Guest

Author Topic: Automating Sprite Collection Creation  (Read 3811 times)

alok1974

  • Newbie
  • *
  • Posts: 2
    • View Profile
Automating Sprite Collection Creation
« on: February 17, 2014, 09:07:13 pm »
I have a lot of sprites textures (about hundreds) from which I want to create sprite collections to be used for animation.

What is the best workflow to automate this process.

I was thinking of creating the sprite collection at runtime, which I can do by creating sprite collection data. But this approach means that everything has to be dynamically created down along the animation pipeline. That means, I have to create the sprite collection data, then send it a sprite collection game object, then dynamically create a clip from this sprite collection and then dynamically add this clip to a sprite animation to finally use it.

This is all a lot of dynamic creation.

I was wondering if there is a way I can just create the data statically without having to use editor, so that it can be opened even when the game is not running just like a normal sprite collection through editor?
« Last Edit: February 18, 2014, 04:18:15 am by alok1974 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Automating Sprite Collection Creation
« Reply #1 on: February 18, 2014, 10:27:20 am »
tk2d 2.4 will have a means of automating this. The feature is available now, albeit in a preview stage - it works, but a lot is still missing. Docs here:
http://2dtoolkit.com/docs/latest/advanced/data_driven.html

alok1974

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Automating Sprite Collection Creation
« Reply #2 on: February 18, 2014, 03:33:53 pm »
Ok great, but till then I guess I will have to go the runtime generation. Btw, when is 2.4 supposed to be released ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Automating Sprite Collection Creation
« Reply #3 on: February 18, 2014, 03:46:48 pm »
Don't have any release dates to announce - the whole thing hinges on the amount of testing it gets, bug fixes, etc.
The beta is available right now, if you want to have a play - its unlikely the code interface is going to support absolutely everything (not in the roadmap to expose EVERYTHING), but nows a good time to use it & ask for missing features!