Jump to content


Photo
- - - - -

Example Of Water Waves


  • Please log in to reply
40 replies to this topic

#1 Keth

Keth

    GMC Member

  • New Member
  • 164 posts

Posted 13 August 2007 - 08:52 AM

Title: Water waves example
Description: The example shows a simple water wave engine. It's not perfect but enough good for easy games.
Other Info: Explanation of the code is inside the gm6.
Type: .gm6 source
GM Version: 6.1
Filesize: 12.7 kb
Link:

Posted Image
Other links:
http://www.mediafire.com/?3myhnmkmmtg
http://rapidshare.co..._waves.gm6.html
http://files-upload....water_waves.gm6
http://www.yourfileh...water_waves.gm6
http://fileho.com/do...-waves.gm6.html
http://www.woofiles....-waterwaves.gm6


Screenshot:
Posted Image

FAQ:
Q: Can I use it in my game?
A: Yes you can.

Q: Do I need to credit you?
A: If you want.

Please comment :)

Edited by Keth, 11 July 2010 - 04:38 PM.

  • 0

#2 StapleGun

StapleGun

    GMC Member

  • New Member
  • 721 posts
  • Version:Unknown

Posted 13 August 2007 - 01:44 PM

The link's not working for me, but I really want to see this in action! Looks really cool.

Very well done. Fast, efficient code - an excellent example.

Edited by StapleGun, 24 August 2007 - 03:29 PM.

  • 0
<div align='center'>Creating a program is easy. Creating software is difficult.</div>

#3 BlueHedgehog

BlueHedgehog

    GMC Member

  • New Member
  • 126 posts

Posted 13 August 2007 - 02:07 PM

Hey, good example :) . I think i'm gonna use this in a puzzle game!!!
  • 0

#4 Keth

Keth

    GMC Member

  • New Member
  • 164 posts

Posted 13 August 2007 - 03:22 PM

Hey, good example :) . I think i'm gonna use this in a puzzle game!!!

<{POST_SNAPBACK}>


Haha! You made my day.
Water wave engine in puzzle game. Nice one :GM7:
  • 0

#5 Keth

Keth

    GMC Member

  • New Member
  • 164 posts

Posted 15 August 2007 - 04:53 PM

You guys are kidding or what?
113 downloads and 2 posts?

Edited by Keth, 13 October 2008 - 01:09 AM.

  • 0

#6 brahma

brahma

    GMC Member

  • New Member
  • 46 posts

Posted 15 August 2007 - 09:11 PM

can you re-make it using sprites. then I will use in a nsmb game.
  • 0

#7 acevampire

acevampire

    GMC Member

  • New Member
  • 1367 posts

Posted 15 August 2007 - 10:01 PM

I have a question.
Is there a way to put it in a small area of a room? Just like an obstacle for the player to jump across, instead of across the entire room.
  • 0

#8 Keth

Keth

    GMC Member

  • New Member
  • 164 posts

Posted 15 August 2007 - 10:59 PM

can you re-make it using sprites. then I will use in a nsmb game.

<{POST_SNAPBACK}>

What you mean?

I have a question.
Is there a way to put it in a small area of a room? Just like an obstacle for the player to jump across, instead of across the entire room.

<{POST_SNAPBACK}>

You need to make it by yourself. I am not going to do it.

---

150 downloads and 4 posts (2 of them are requests and even no single "thanks")
  • 0

#9 acevampire

acevampire

    GMC Member

  • New Member
  • 1367 posts

Posted 16 August 2007 - 03:03 PM

[quote name='acevampire' date='Aug 15 2007, 10:04 PM']I have a question.
Is there a way to put it in a small area of a room? Just like an obstacle for the player to jump across, instead of across the entire room.

<{POST_SNAPBACK}>

[/quote]
You need to make it by yourself. I am not going to do it.

<{POST_SNAPBACK}>

[/quote]

Then this is pretty useless considering no one will need a whole room filled with water.
  • 0

#10 AjDeF3

AjDeF3

    Platform Game Lover

  • New Member
  • 1264 posts

Posted 16 August 2007 - 03:42 PM

Hah, this is amazing!

Nice job!

Its not really watery though, its seems more like a goopy geel, but still, nice example
  • 0
My game: NEW VERSION! 5 Levels!


Play Sonic Super Dash!
And last but not least... Play my FAVORITE game ever made with GM, and purchase the full version. Here

#11 brahma

brahma

    GMC Member

  • New Member
  • 46 posts

Posted 16 August 2007 - 05:23 PM

like how in nsmb when you collide with the water they make a seperate sprite for the splash.

oh yeah. sorry, I forgot to say it was a greate example and thx for making it!
  • 0

#12 Forgiven12

Forgiven12

    GMC Member

  • GMC Member
  • 52 posts
  • Version:GM8.1

Posted 17 August 2007 - 07:18 AM

There's one thing that kept bugging me, I couldnt make the splash cause distinguishable waves in whole area. It isnt same as just adding force to the splash. Please how to make the water more fluid-like?

I couldn't figure out how to make the splash waves spread out more. I only could alter the splash force but not make the waves go further if you know what I mean. Please make it possible to make it more fluid-like, then I would consider using it in my games.
  • 0

3pTXJiR.png

A lane defense game with rock-paper-scissors strategy and puzzle elements.

http://gmc.yoyogames.com/index.php?showtopic=626883 


#13 windscars

windscars

    GMC Member

  • New Member
  • 71 posts

Posted 24 August 2007 - 03:03 PM

Absolutely awesome.
Someday we'll have nice waterbending codes there :(
  • 0

#14 OpticalLiam

OpticalLiam

    GMC Member

  • New Member
  • 782 posts

Posted 24 August 2007 - 03:48 PM

Pretty slick, the only problem was that the water never seemed to completely settle back to horizontal after making some waves. Now add bouyancy physics!
  • 0

#15 Mgamerz

Mgamerz

    Lazy Developer

  • New Member
  • 1289 posts

Posted 24 August 2007 - 05:18 PM

Look Decent. I might use it and 'THANK YOU' if I can get it to be smaller, or larger. I'm thinking this would make a good level for program wars, except it would be like the Diveman stage in Megaman 4. If I can't get it to work, I'll just have to use a splash sprite.
  • 0

[StarBord: the First Front]III[Open Source 360° Topdown Shooter]IIIOpen Source Scrolling MenuIIIOpen Source Joystick Controls
Have something you want to figure out how it works? Try a test bed. They are fast to load, and great for experiments. And they are FTW.

#16 yomomma

yomomma

    GMC Member

  • New Member
  • 367 posts

Posted 25 August 2007 - 12:50 AM

This is awesome! I never knew anything like this could be created!
  • 0

#17 GanonDork

GanonDork

    GMC Member

  • New Member
  • 25 posts

Posted 26 August 2007 - 03:35 AM

Hey, not bad. I'll be using it ::lmao::.
  • 0

#18 DarkFalzX

DarkFalzX

    GMC Member

  • GMC Member
  • 467 posts
  • Version:GM:Studio

Posted 14 September 2007 - 05:05 PM

This is a very cool effect, but as it is, it requires quite an extensive setup and will only function under certain conditions. I am currently in process of rewriting it to be much prettier and more universal (as in, I can just drop it onto a map as a tile, and it will fill up any collision-free cavity below Y) for one of my FX projects. If the project is ever completed I will give you credit. Thanks a lot.
  • 0

HW5P7IN.png
Download a demo or buy the full version HERE
Grab Legend of Iya demo here


#19 garrlker

garrlker

    GMC Member

  • GMC Member
  • 349 posts

Posted 15 September 2007 - 08:56 PM

This is better then GMphysics water. Great Job!!!! :mellow:
  • 0

#20 MapleGuru

MapleGuru

    GMC Member

  • New Member
  • 271 posts

Posted 05 October 2007 - 09:00 AM

Awesome!! Its so realistic!! I might use this in one of my games.
  • 0

#21 tom_backton

tom_backton

    GMC Member

  • New Member
  • 226 posts

Posted 05 October 2007 - 03:38 PM

Very nice...If you used sin() the wave would look more realistic. But it is still cool. :o
  • 0
Current Project: Warmongers (2D RTS)

You can try Warmongers Demo.

My 2 not-very-useful examples:
Snowflake Fractal
Spiral

(I have another one, growing plant with leaves and fruit LOL . . . check my last post at http://gmc.yoyogames...pic=382464&hl=)

#22 grandhighgamer

grandhighgamer

    Village Idiot

  • GMC Member
  • 3801 posts
  • Version:GM:Studio

Posted 05 October 2007 - 04:29 PM

Notice how it's an example not an engine. Therefore your supposed to learn the techniques from it, not use them directly. That's why he has every right to refuse to make minor changes.
  • 0

#23 xot

xot

    GMC Dismember

  • GMC Elder
  • 4777 posts
  • Version:GM:Studio

Posted 06 October 2007 - 12:34 AM

Not bad, very similar to something I made. Your's could be simplified some and the effect would be improved in the process.
  • 0
GMLscripts.com, rise from your grave!

#24 mechanikos

mechanikos

    GMC Member

  • New Member
  • 453 posts

Posted 06 October 2007 - 04:43 PM

I have both a wave generator and a buoyancy example on my site. The ejecta effect on this one is nice, there are no equations I know of to describe ejecta, so it just has to be done by feel.
  • 0

#25 Drizzt7

Drizzt7

    GMC Member

  • New Member
  • 125 posts

Posted 22 December 2008 - 12:29 AM

I did a little editing, and I made it with only a controller object and no "water_part" object. The actions were all sorted into a series of four scripts as well. Also, its more customizable with x-minimum, x-maximum, y-minimum, and y-maximum values. You can also set colors for the top and bottom of the water:

Posted Image

Download update

Edited by Drizzt7, 22 December 2008 - 12:29 AM.

  • 0

#26 wzx3000

wzx3000

    GMC Member

  • GMC Member
  • 107 posts

Posted 28 December 2008 - 10:17 AM

It's really good except one thing, if you drop about 7 stones at the same place, the water continue moving way too long. After 10 minutes i closed the game.
  • 0

#27 santa22

santa22

    GMC Member

  • GMC Member
  • 251 posts

Posted 22 March 2009 - 06:10 AM

anything is possible with GM
  • 0

#28 amberyoukai

amberyoukai

    GMC Member

  • New Member
  • 300 posts

Posted 02 April 2009 - 01:38 AM

this is why I would like to get pro,
It looks awsome!!!
I might try it at my friends house(he has pro)
  • 0
<a href="http://gmc.yoyogames...owtopic=425413" target="_blank"><img src="http://i234.photobuc.../RedGuysig.jpg" border="0" class="linked-sig-image" /></a>
<b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->LINK NOT WORKING/Great game feauring cuztomizable character!(too busy)<!--colorc--></span><!--/colorc--></b>
See topic if you want to help(click the image)

#29 Kyon

Kyon

    Creator of Dirkels

  • GMC Member
  • 4247 posts
  • Version:Unknown

Posted 02 April 2009 - 05:11 PM

hmm,
this topic is old.

I looked at the example.

Pretty nice!
Very realistic,
but. The waves didnt stop being normal again :)

Anyway.
Good job!
8.5/10
  • 0

My name is Kyon Edelenbosch, I Design, Program and Animate.

Learn more about Dirkels at http://kecreations.forumotion.com/


#30 artingames

artingames

    GMC Member

  • New Member
  • 16 posts

Posted 03 April 2009 - 04:08 PM

An amazing piece of 'gaming'. It's very realistic.
  • 0

#31 Dakota

Dakota

    GMC Member

  • New Member
  • 101 posts

Posted 04 April 2009 - 07:11 PM

I like how you can create the rocks anywhere you want. I edited the code for global left pressed a bit so That it can create a platform object in one of my games. Do ya mind if i use it for the level editor mode in my game? Also Im amazed at how realistic it looks when i drop a rock in the water! I was just expecting a bunch of little blue dots to go flying out. ;) Thats beyond incredible!

Edited by Dakota, 04 April 2009 - 07:12 PM.

  • 0

#32 daman123125

daman123125

    AZN Game Programmer

  • GMC Member
  • 1956 posts
  • Version:GM8

Posted 04 April 2009 - 08:39 PM

None of the links work. Also, I can't download files from Host-A since it always shows a blank html page with no source when I try to download something.
  • 0
Posted ImagePosted Image
Posted ImagePosted Image

Tuts/Examples: Ultimate Weapon Arsenal(AI included) | Wall-Jumping | Plasma Pistol/Rifle Overheating System | Cash Register Example | Two Objects In One View
PM me if one or more of my posted examples have a broken link.

#33 safwat1995

safwat1995

    GMC Member

  • New Member
  • 394 posts

Posted 06 April 2009 - 05:59 AM

amazing and realistic! *claps*
EDIT: I tried to change the image_alpha of the rock when it is underwater to 0.2, the results were cool :)

Edited by safwat1995, 06 April 2009 - 06:00 AM.

  • 0

#34 olivebates

olivebates

    GMC Member

  • GMC Member
  • 526 posts
  • Version:GM8

Posted 13 May 2009 - 04:03 PM

When i try to make 2 stones, i copy all the stuff from the other stone, and paste it to the second one, but then this happend;

Error in code at line 5:
   if (y < water.water_height) {

at position 16: Unknown variable water_height

and if i ignore it, this happens

Error in code at line 1:
   if (!touched) { // If the stone still haven't touched the water

at position 6: Unknown variable touched


Can anyone help me?
  • 0

- Olivebates


#35 W3Geek

W3Geek

    GMC Member

  • New Member
  • 541 posts
  • Version:GM:Studio

Posted 17 May 2009 - 02:14 AM

Dude this is awesome & well commented! :(

*thumbs up!*
  • 0

I use GM9


#36 lo_lord

lo_lord

    GMC Member

  • New Member
  • 78 posts

Posted 17 May 2009 - 04:47 AM

I made a little update to it featuring particles and stuff for use in your games, enjoy.

http://www.mediafire...621d66e282a0ee8
  • 0

#37 nniFymereJ

nniFymereJ

    GMC Member

  • New Member
  • 19 posts

Posted 21 May 2009 - 09:38 PM

Nice! The only problem is that the water never really settles, but other than that, this is amazing. Thanks for making it :P

-Jeremy
  • 0

#38 Connector

Connector

    GMC Member

  • New Member
  • 21 posts

Posted 11 July 2010 - 04:24 PM

You have like, 8 ou 9 different download options. Noone of them works.

I would really like to try this on, I'm doing some work with fluids, maybe this could be helpfull.
  • 0

--------
---------------------
If you read anything above that contains any kind of english error, do not judge me, English is not my first language
---------------------
---------


#39 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 867 posts
  • Version:GM8

Posted 12 July 2010 - 07:35 PM

You have like, 8 ou 9 different download options. Noone of them works.

I would really like to try this on, I'm doing some work with fluids, maybe this could be helpfull.


Check your PM :)
  • 0


Posted Image


#40 ck2k

ck2k

    GMC Member

  • New Member
  • 68 posts

Posted 14 August 2010 - 12:47 PM

Nice :D

I would really like to use it, but i've got some problmes with making it fit to my game (maybe it's imbossible? :o)
Is it possible to make a round water "boubble"?

Like
Posted Image
(it's not a screenshot, its Photoshop :D )

Figured out how to make a flying water square but i guess a boubble is way more complicated isn't it?
Just give me some hints please (:
  • 0
WWIII: Coca Cola vs. Google

#41 Hiddenaces

Hiddenaces

    GMC Member

  • New Member
  • 418 posts

Posted 14 August 2010 - 04:05 PM

ok apart from the waves have points and i think they should be smoother this is a great example.
  • 0
Try it out
Code Snippets
What you got to lose :):)
My thread link to code snippets in the Tutorials and Examples forum
pop by and leave a comment.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users