A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: New Super Mario Brothers - Water Effect

  1. #1
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923

    New Super Mario Brothers - Water Effect

    So I've been up for about 24 hours, and I got bored, playing with DisplacementMap and movieclips.

    If theres a better way to do it (without MC's) I'd be happy to see it.

    http://www.squarecircleco.com/Test.zip

    Have fun.

    ps. Excuse the awful code, its a hacked up tech test =D

    pps. Attaching is good for the soul
    Last edited by iopred; 06-06-2006 at 07:48 PM.
    Christopher Rhodes
    squarecircleco.

  2. #2
    Senior Member TheLostGuru's Avatar
    Join Date
    Aug 2004
    Location
    I live on this webpage...
    Posts
    784
    whoa... way cool Nope wait, thats just my screen...
    "If I have seen further it is by standing on the shoulders of giants." Isaac Newton
    ------------------------------------------------------------------------------

  3. #3
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    would love to see it, but i think your missing some valuable code in your post
    lather yourself up with soap - soap arcade

  4. #4
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    Oh.. It didn't attach..

    http://www.squarecircleco.com/Test.zip
    Christopher Rhodes
    squarecircleco.

  5. #5
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    nice, i think the displacement needs to start exactly when the player hits the top of the water, it looks kinda weird, but it does displace nicely, just a matter of timing it

    If theres a better way to do it (without MC's) I'd be happy to see it.

    i guess you could use perlin noise, i've seen examples but never used it, here's a source file from someone else
    Last edited by mr_malee; 06-06-2006 at 08:04 PM.
    lather yourself up with soap - soap arcade

  6. #6
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    I knew someone would complain about that =D Fixed.
    Christopher Rhodes
    squarecircleco.

  7. #7
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    I tried perlin noise, but you cant position it, only do broad ripples, in that example you posted, he uses a gradient to change the size of the ripple, I assume that could work, but again, you'd be using gradients to choose the position of the ripples, which is what I'm doing now =(

    On another note, you can make a really nice looking water effect, by a 2 octave Perlin noise, and animating one of the octaves.
    Christopher Rhodes
    squarecircleco.

  8. #8
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    yeah, sorry i can't help much, i'm still just learning displacmentMaps

    nice work though, why the New Super Mario Brothers, is that a hint hint for an upcomming release perhaps
    lather yourself up with soap - soap arcade

  9. #9
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    Nah, in the DS game, theres levels with water like this, where it ripples when you jump in, I was just copying the effect.
    Christopher Rhodes
    squarecircleco.

  10. #10
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    711
    Sorry, I downloaded Test.zip and saw a black block that can be moved with arrow keys and spacebar for jump. I don't see water anywhere, I must miss something...

  11. #11
    Patron Saint of Beatings WilloughbyJackson's Avatar
    Join Date
    Nov 2000
    Location
    Ro-cha-cha-cha, New York
    Posts
    1,988
    Quote Originally Posted by Sietjp
    Sorry, I downloaded Test.zip and saw a black block that can be moved with arrow keys and spacebar for jump. I don't see water anywhere, I must miss something...
    Do you have Flash 8?

  12. #12
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    711
    Flash 8 player yes but not IDE.

  13. #13
    Open the swf with your browser then, not the standalone flash player.

  14. #14
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    711
    Quote Originally Posted by xMCNUGGETx
    Open the swf with your browser then, not the standalone flash player.
    Thanks it works, I see the water now. Didn't know that difference between the browser player and the standalone player. Nice promising effect iopred, would it be possible to post the little actionscript code here as I can't open it without flash 8?

  15. #15
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Looks cool but looks more like jello or a sheet... you know? A substance that's way thicker than water.

  16. #16
    -_-
    Join Date
    Oct 2005
    Location
    US
    Posts
    1,694
    I asume iopred did the effect with Flash8, there for useing AS 2.0.

  17. #17
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    Quote Originally Posted by Sietjp
    Thanks it works, I see the water now. Didn't know that difference between the browser player and the standalone player. Nice promising effect iopred, would it be possible to post the little actionscript code here as I can't open it without flash 8?
    Having the code will be of no use, as you don't have Flash 8.
    Christopher Rhodes
    squarecircleco.

  18. #18
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    711
    Of course it's useful! Can't you read a code without compiling? Nevertheless if the code is too big I understand you don't post it here, it's enough now I will buy Flash 8 ^^ (or maybe I should wait for flash 9...)!

  19. #19
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    When you get Flash 8, open the fla.
    Last edited by tonypa; 06-08-2006 at 07:57 AM. Reason: Please try to use other words
    Christopher Rhodes
    squarecircleco.

  20. #20
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    711
    I don't understand once again your point of view as unlike you, it seems to me very useful. Ok then I'll buy Flash 8 to have the priviledge to see your code.
    Last edited by tonypa; 06-08-2006 at 07:56 AM. Reason: Really not the place to discuss these

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center