Please help me with this weird effect
This is a link to a game called Scoops.

I'm just making a similar one (with crates instead of ice cream) and I wonder how I can achieve a similar 'wobble' effect when you're waving the ice creams from one side to the other, as you can see on the video. PLEASE, can someone help me? I've been working at this for a couple days now, with no luck. I already have a way to 'order' a stack of ice creams so each one is number 1, 2, 3, 4, etc. but I can't achieve the wobble.
Thanks in advance! Hope someone can help me.

I'm just making a similar one (with crates instead of ice cream) and I wonder how I can achieve a similar 'wobble' effect when you're waving the ice creams from one side to the other, as you can see on the video. PLEASE, can someone help me? I've been working at this for a couple days now, with no luck. I already have a way to 'order' a stack of ice creams so each one is number 1, 2, 3, 4, etc. but I can't achieve the wobble.
Thanks in advance! Hope someone can help me.
Comments
once you decide on the number of tiers, you break them up into how much they will swap
tier 1, no sway
tier 2, sway up to 10px
tier 3, sway up to 15px
etc...
then program in the swap. this could be done with a constrain on the position +- the sway offset from the tier 1 object.
something like that anyways.