Im trying to build a system of platform water for my 2D platform game.
How you do it? Theres a better way? Theres some good patterns/pratices?
To simulate water density i was thinking about use a HitTest system with Player and Water to decrease the player speed while Player is colliding with water.
But for other things, i still have several doubts about how to execute this:
What are the best pratices/patterns to create the little bubbles which appears when someone jumps in the water. (or even move through the water)
What are the best pratices/patterns to create the water sprite itself, should it be an one piece block, or several little blocks aligned side by side?
How should i simulate waves on these sprites? Theres some Mathematical logic for doing this?
If the best pattern is to create several little blocks of water aligned side by side, how could i simulate the waves using several blocks. Its easier, difficult?
I dont want anything in the “spoon-feed” way, all that i need is a light to go!
the links to the tutorials looks really interesting, there is also a free asset on the store regarding physics 2d liquids : Unity Asset Store - The Best Assets for Game Making , but no ‘pixel art’ towarded.
If you need a ready-to-use solution, then you might be interested in this 2D cartoon-style water: Water 2D Kit | 2D Water | Unity Asset Store - it has animated waves, a refractive (glass) shader, some splash FX, and an example of buoyancy physics.