Wobbling Effect

JoeBJoeB Member Posts: 160
I'm making a simple game where you stack jelly cubes and i want them to wobble when I'm moving the stack side-to-side.

For example, if there's a stack of five jelly cubes I want the bottom cube to move the fastest, with the upper cubes moving slower the higher they are, so the visual effect is that it is 'wobbling.'

I can't figure out a way to do this wobbling effect though! I've already done an ordering system to assign a 'stack order' to each cube.

Thanks!

Comments

  • lewisonelewisone Member Posts: 48
    A jello effect can be done by first animating the image with a series of png's to make it giggle singlur. Next use the Move Attribute and Random distance to sway it from one to the other (a small math formula could be used to keep it within the bounds of the object it is sitting on). I can imagine you would need to "anchor" the top object to the one underneath it in order to keep it fluid looking and detect if it needs to fall off it or not.

    I don't think it's an easy solution, but a little work. Hope my concept of how it might work will inspire you for a working solution.

    -LewisOne (My Website, FB, Twitter, IG, YT)

Sign In or Register to comment.