2D Toolkit Forum
2D Toolkit => Support => Topic started by: Cybertiger on January 13, 2014, 08:18:59 pm
-
Hello,
I can't figure out why below is not triggering? I have tripple and quadruple checked that the trigger is set on the specific clip.
//play the Idle clip
animator.Play("Idle");
//call the event
animator.AnimationEventTriggered = pushUpEvent;
void pushUpEvent(tk2dSpriteAnimator animator, tk2dSpriteAnimationClip clip, int frameNo)
{
tk2dSpriteAnimationFrame frame = clip.GetFrame( frameNo );
print ("EVENT: info is " + frame.eventInfo);
}
-
I would test this in demo scene #5. Use that clip, then check your clip on the demo - that will rule things out pretty much straight away. If you still can't figure it out set up a minimal repro case and email support at unikronsoftware.com