2D Toolkit Forum

2D Toolkit => Support => Topic started by: Jason RT Bond on January 22, 2013, 06:39:16 pm

Title: Changing Material for Animation
Post by: Jason RT Bond 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.
Title: Re: Changing Material for Animation
Post by: unikronsoftware 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.