Creating a water surface appearance. Side on, not a texture.

Hey,

I’m not looking for a water or buoyancy simulation, although it appears some people are making some good ground in that area. I’m just after a simple (i hope) way of making the ocean in my side scroller look like the surface is moving. Maybe using sine? I dunno. Any help would be much appreciated.
Cheers,

Cell [import]uid: 26289 topic_id: 17191 reply_id: 317191[/import]

You could put a bunch of circles in a row which could simulate the waves. As long as they are the same color they would appear as a single object. [import]uid: 10903 topic_id: 17191 reply_id: 64791[/import]

Not a bad suggestion, however i’m looking for a solution that is animated and doesn’t hog memory. Thanks though.

Anyone else?

I’m not too keen to use sprite sheets but I can do some art stuffs [import]uid: 26289 topic_id: 17191 reply_id: 65207[/import]

did you take a look at http://developer.anscamobile.com/code/water-buoyancy-example ??

edit: uh well, i guess it’s not an animated water surface…

[import]uid: 70635 topic_id: 17191 reply_id: 65209[/import]

I’d draw two long strips of “ocean waves” that are wide and thin and are of the same color and transparency as your water. Then position the strips on top of your transparent underwater rectangle. Then I’d animate the strips, one on a sin curve and the other on a cos curve across the screen.

My best ascii art example would be:

Strip 1:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Strip2:
////////////////////////////////////\ [import]uid: 60707 topic_id: 17191 reply_id: 66682[/import]