Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Rafe on July 29, 2012, 03:50:04 AM

Title: Playing Animation Frames in a Different/Random Order
Post by: Rafe on July 29, 2012, 03:50:04 AM
Hi,

I need to make two animations out of the same sprite-frames. The first is just the sequence in order, which works fine. For the second I want to play the frames randomly. Is there a way to do this without adding the frames to the atlas with a different name?

Cheers,
Title: Re: Playing Animation Frames in a Different/Random Order
Post by: ArenMook on July 29, 2012, 04:01:19 AM
Don't use the UISpriteAnimation for that. Just write a small script that will do just that -- randomly pick a sprite from a list of your choosing.
Title: Re: Playing Animation Frames in a Different/Random Order
Post by: Rafe on July 30, 2012, 02:42:00 AM
Funny, as I was falling asleep I realized how easy it would be to do as you suggest. Thanks for the reply!