Hello Guest

Author Topic: Multi-collection animation file? [SOLVED]  (Read 5380 times)

artician

  • Newbie
  • *
  • Posts: 20
    • View Profile
Multi-collection animation file? [SOLVED]
« on: November 11, 2013, 11:41:46 pm »
Looked at the FAQ but didn't find what I needed.

I split my sprites into 3 different collections for better resource management.  I am still only using one animation file though, and it appears that I can have an animation file that pulls from multiple Sprite Collections.  The problem I'm having is that the mapping for different animations/collections keeps getting messed up, and I'm not at all certain why. 
I imported all my animations as pre-assembled sprite-sheets, which worked fine at first.  Once I moved to using multiple collections, it's as though the tool loses track of the cell-size on different collections.

Is this not possible?  Do I have to create a separate animation file for each separate collection file as well?

Thanks for any help.
« Last Edit: November 12, 2013, 09:39:10 pm by artician »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multi-collection animation file?
« Reply #1 on: November 12, 2013, 09:53:02 am »
You can mix and match whatever collections you like in an animation. There is no "cell size" anywhere, so perhaps the sprite collection size is different, or the anchors aren't set up the same?

artician

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Multi-collection animation file?
« Reply #2 on: November 12, 2013, 01:11:30 pm »
Okay I think this is a bug then.

By cell-size, I meant the size of one frame within a sprite sheet.  When importing a sprite sheet into a collection, the Config panel asks you for the size of the frame. 

What appears to be happening is that the sprite collections aren't retaining that information when displayed within the Sprite Animation editor.  If I switch back to the Sprite Collections editor, everything looks fine.  If I click commit within the Collections editor (even though nothing has changed), it "fixes" the issue in the Animation editor, but that causes other animations within the Animation editor, specifically those with frames from different Collections, to display the problem.

I've tried vising each Collection in turn, but as soon as one is "fixed", another one that was previously working is corrupted.  I only have three collections.

Thank you for any further assistance.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multi-collection animation file?
« Reply #3 on: November 12, 2013, 01:18:54 pm »
How are you creating your second and third collection? Are you by any chance duplicating the first or something like that?

artician

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Multi-collection animation file?
« Reply #4 on: November 12, 2013, 01:23:36 pm »
Whoops, posted a comment from the wrong thread by accident.

To answer your question: Yes, I duplicated my original to save time.  I cleared the Resource object and regenerated the atlas and material files, but this too had crossed my mind as a potential cause.  I just didn't have enough time currently to test the theory, but it sounds like that's the issue.

Is there some lingering meta-data associated with the Collections that I'm not aware of?  Regardless, bad practice on my part.  Thank you for helping me (hopefully) solve the issue.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multi-collection animation file?
« Reply #5 on: November 12, 2013, 01:41:43 pm »
Yes, the sprite collection contains references to the objects. Clicking "Clear references" in settings after duplicating should clear the links. I think something must've been left over.

artician

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Multi-collection animation file?
« Reply #6 on: November 12, 2013, 09:38:58 pm »
I just set everything up from scratch and it worked as I'd initially expected.  Thank you!