Snap to Place/ Image Folding Library

http://www.youtube.com/watch?v=5FPqqA712Rs&feature=player_embedded

In the above video, these guy have a pretty nifty snap to place animation for draggable images. Do we have any resources similar to the one demoed? Elastic snap to grid likely utilizes the easing trans. library and a simple check on coordinates when touch is ended. Despite using the word “simple,” a clean looking execution has proven to be not so simple. [import]uid: 13050 topic_id: 13223 reply_id: 313223[/import]

In my upcoming app Horse Crazy I allow the user to grab pieces of tack (bridles, saddles, etc.) and position them on the horse. If they are close to the “optimum location” when they release the piece, I snap the piece into place, although I could use transition.to() to move it into final position.

The reason I went with a “snap” instead of a “move” was that the target area is only 30 x 30, so there’s not really much time to see any gliding of the piece.

I’m messing with small pieces on a small horse, but with a picture on a page like in that book, a smooth transition.to() could look cool.

As far as the folding part goes, you could fake it with a series of pictures (sprites or movieclips) but that would be really time-intensive when putting it together.

But grabbing, moving, and expanding or contracting, that shouldn’t be too hard with Corona.

Jay [import]uid: 9440 topic_id: 13223 reply_id: 48535[/import]