The system uses paths which you create in the path editor, with the show room option set. The paths define the river banks.
The functions generate a series of models that are drawn each step, like you would an animated sprite. The functions are easy to use and the provided objects should serve as an example for your game.
1)Define you river bank paths
2)Call the functions on game start
3)Use a proper texture for the river water
4)Draw the models
F1 for help
Added lake and platform water animation!!!
You add wave generators suplying a wave form (again the wave form is a path), call many times, as you can add a few of wave generatores around and in a lake.
Then you call the MakeLake or MakePlatformWater, they will generate the animation sequence models. The waves from the varius generators will interfere. I'm prety proud of that little feat. You may have to boost the sine waves to see the interference paterns.
I also added streaming the models to files.
I added a script to generate 3d water as well. Works Like other script, an extra argument is used to specify the height distortion (z) but the method remain the same. Also the edges are not changed so the effect on the edges does not look like a cloth fluttering in the wind.
Edited by icuurd12b42, 11 September 2013 - 07:59 PM.