2D Toolkit Forum
2D Toolkit => Support => Topic started by: echeg on April 01, 2013, 06:30:06 pm
-
Hi.
I have 2 monsters Red and Blue. For each monster made separate atlas and sprite animation. (red_sprite_collection, red_sprite_animation and blue_sprite_collection, blue_sprite_animation)
Some game logic should change the color of the monster.
Is there a method that allows to change red_sprite_collection to blue_sprite_collection?
-
sprite.anim = newAnimationLib;
sprite.Play( "clipName" ); // will now play from the new library.