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

#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

#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
  • 48 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

#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

#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
  • 447 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

#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

#22 grandhighgamer

grandhighgamer

    Village Idiot

  • GMC Member
  • 3685 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
  • 4775 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

#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

#29 Kyon

Kyon

    Creator of Dirkels

  • GMC Member
  • 4241 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

#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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users