Hi everyone, I'm stucking in create a flow of water effect like this game https://itunes.apple.com/us/app/sprinkle-free/id474723614?mt=8 Could you please help or suggest me how to make it ? Many thanks,
@herman111: I tried to use particle effect but Particle collision doesn't support Unity 2D. I need process collision between flow of water and some game object. Could you tell more about scrolling texture ?
a texture that scrolls on a gameobject..add this code to a sprite with a texture Code (CSharp): using UnityEngine; using System.Collections; public class scrollingTexture : MonoBehaviour { public int materialIndex = 0; public Vector2 uvAnimationRate = new Vector2( 1.0f, 0.0f ); public string textureName = "_MainTex"; Vector2 uvOffset = Vector2.zero; void LateUpdate() { uvOffset += ( uvAnimationRate * Time.deltaTime ); if( renderer.enabled ) { renderer.materials[ materialIndex ].SetTextureOffset( textureName, uvOffset ); } } }
Do you need your water to swish and splash and respond to physics the way that game does? If so, that's going to be a major undertaking on its own. If not, herman's strategy could work.
@StarManta: Yes, I need a flow of water to swish, splash and respond to physics like that game. Could you suggest me some ideas ?