Search Unity

How to do 2D water like in rpg game

Discussion in '2D' started by unity_dnFOp3W-qjn3ag, Jun 24, 2021.

  1. unity_dnFOp3W-qjn3ag

    unity_dnFOp3W-qjn3ag

    Joined:
    Nov 8, 2020
    Posts:
    4
    Hello!

    Sorry for my english, so I need water for my 2d second-person game, I just cant find something like
    this

    Thank you in advance!
     
  2. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,511
    I don't know 100% what you want, but there are some strategies discussed in these two threads:

    Spritesheet animation: https://forum.unity.com/threads/bobbing-water-like-in-forager-game.1130164/
    Spritesheet, vertex shader, and/or tilemap offseting: https://forum.unity.com/threads/runtime-access-to-unity-2d-tiles.1130446/#post-7264165

    There's also shaders more generally. I can't tell what's going on in your picture (it appears as a single frame), so what kind of movement the water is doing I can't comment on.