- Home /
How to animate topdown 2d water tiles?
I am developing a topdown game using 128x128 tiles. How can I go about animating the water tiles so that they move but still stay uniform with each other?
Should I create an animation for each tile? I'm not sure how I could create that and still keep each tile in sync and uniform.
Answer by Vollmondum · Apr 26, 2018 at 03:37 PM
Water surface should be animated as separate spriteRenderer on top of tile background. Update: That means that you need to create a sprite for your watered tile. 5-6 images. Whatever's on the back stays there. On another layer you add your dinamically rendered water tile. Say you have 5-images on the sprite. So you add these tiles, index them and change indices each frame or whatever flow speed you want. So a row of tilea with 0 1 2 3 4 shall become 1 2 3 4 0 next frame, then 2 3 4 0 1 etc
Unlike your comment that brought this answer from 2018 back to the top and enlightened us all in your wisdom. You should slap yourself
Your answer
![](https://koobas.hobune.stream/wayback/20220612113729im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to have camera follow player unless it hits a boundary 1 Answer
Collision and layering for 2D top down project with hand drawn backgrounds 0 Answers
Prefab to a tile script 0 Answers
how to make a pushable object in a 2D top-down game? (no gravity) 1 Answer
8-directional orientation, top down 2D, seperate from movement 0 Answers