Hello Guest

Author Topic: Changing Material for Animation  (Read 4402 times)

Jason RT Bond

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Changing Material for Animation
« on: January 22, 2013, 06:39:16 pm »
I can see documentation on setting multiple materials for a sprite atlas (http://www.unikronsoftware.com/2dtoolkit/doc/tutorial/multiple_materials_in_a_sprite_collection.html), which is really helpful. I'd like to have some sprites using alpha blending and others using additive blending.

However, when I make sprite animations from that atlas, I seem to lose this choice, and the animation doesn't carry over the material I selected per sprite. Am I missing something? I'd really like additive-blended animations, but even if I manually replace the material on the sprite animation it just resets to alpha blended when the game runs.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Changing Material for Animation
« Reply #1 on: January 22, 2013, 10:34:23 pm »
Note - you can have additive frames without using a separate material when using premultiplied alpha. Tick the additive tickbox for this to take effect on that particular sprite.

What you're describing sounds like a bug. I'll investigate, but this is likely to be after 1.90 final has been released.