PDA

View Full Version : Photo shuffle effect


bigduke
04-16-2008, 04:31 AM
I just came across this effect on the eBay desktop app which is built in AIR. Its a photo shuffle effect. Have a look at the attachments.

Wonder how this could be achieved. Any ideas?

Groady
04-16-2008, 05:04 AM
My guess would be it's using Tweener (http://http://code.google.com/p/tweener/) to animate and simply swapping the indexes. Not too hard to do.

lordofduct
04-16-2008, 05:16 AM
depending on how dynamic you'd want it to be, it could be hard to some people. But really kinda basic.

I'd just create a sprite container for the image, and tween the rotation and position through an arc. And then drop it to the bottom of the display list and bring it back in. If you wanted it to drop into the middle of the stack, just drop it to some point inbetween the lowest photo and the second to highest photo (as this is the highest one).

And for that haggered stack effect (the images not lining up) use some randomize the beginning rotation, and tween to some control points based off of that beginning rotation.