Please help me with this weird effect

JoeBJoeB Member Posts: 160
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.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    this is just me thinking out loud, but how I would approach it would to have a predefined number of tiers. In scoops they never have more than 7 scoops on the screen at once.

    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.
Sign In or Register to comment.