Hi,
I've made a simple c# script that loads in another sprite animation resource and plays a clip when 'x' is pressed. You should be able to convert it so it does what you want...
using UnityEngine;
using System.Collections;
public class ChangeAnimation : MonoBehaviour {
public tk2dSpriteAnimator myAnimator;
void Update ()
{
if(Input.GetKey("x"))
{
tk2dSpriteAnimation newAnimationLibrary = Resources.Load ("shipAnim", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;
myAnimator.Library = newAnimationLibrary;
tk2dSpriteAnimationClip myClip = myAnimator.GetClipByName("shipdestroy");
myAnimator.Play(myClip);
}
}
}
Remember, any resources you want to load in at run time need to go in a folder called 'Resources' in the assets folder. Also, a sprite animator should exist in the Hierarchy window and be dragged to the 'myAnimator' slot on the script.
Hope this helps.