River ai

Hi,

I made this isometric random land generating thing (attatched, space to generate, slide the slider to alter steepness and stuff)

the heights of the points are stored as variables which update when you press space.

ie point 1 could have a height of 45
point 2 35 etc… I want to have a river so it flows from the highest point to the lowest point in comparrison to the previous point.

is there a function to find the highest and lowest values of a given set of variables???

or will I have to use a load of if(point 2. height <point1 height) { flow that way. Looking for a quicker way of doing this…

thanks in advance

Sam

something went weird on the upload… http://www.kitegallery.net/albums/Extras/isometric_land_random.swf that version works… :slight_smile: