Actionscript help!

Started by: New Generation | Replies: 30 | Views: 2,085

New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 10:16 PM #116310
Nice double post! LOL

T_T

Yes I copied it so what, T_T

I need to fix it. Where's The Pirate when you need him?
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 10:21 PM #116312
Quote from James Moer
Nice double post! LOL

T_T

Yes I copied it so what, T_T

I need to fix it. Where's The Pirate when you need him?


If you copied it, yet it's imperfect, then it's not from a tut?

If it's not from a tut, and you copied it, it is likely stolen information from an unwilling source. That's what's wrong with it.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 10:36 PM #116320
It's from a tut, and not stolen. The tut director came up with the script.
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 10:40 PM #116322
Quote from James Moer
It's from a tut, and not stolen. The tut director came up with the script.


Then why is it imperfecft!!???!??!KUjuw3edwl;iad/w;
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 10:42 PM #116324
I don't know. ASK THE TUTORIAL DIRECTOR!!!

I need it to be fixed so I can use it in my flash animations :/
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 10:52 PM #116333
Quote from James Moer
I don't know. ASK THE TUTORIAL DIRECTOR!!!

I need it to be fixed so I can use it in my flash animations :/


THEN USE A DIFFERENT TOTORIAL!!!

I can use caps. >:(
Paco
2

Posts: 910
Joined: Feb 2006
Rep: 10

View Profile
Apr 15, 2008 11:01 PM #116342
agreed.
and your a fag for copying it at all without knowing what it is.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 11:13 PM #116355
I know. It makes a picture of water, animated, making the water realistic. This is called morphing.

I'll explain what the actionscript does:


Line 1 - 4: Imports required Actionscript Classes.
Line 7: Creates an Object with an array of Bitmap pixels the size of our imported image.

Line 11: Uses the DisplacementMapFilter class to allow us to displace the image pixels. ( warp the picture )
Parameters of Interest:
The first parameter is our Bitmap Object from line 7.
The last 2 parameters are multiplers for the x and y displacement. Leave them for now, but play with them later.

Line 13 - 15: Adding our DisplacementMapFiler to our water_mc's available filters.
Line 17: Defining a function to run once per frame. (30 per second)
Line 19 - 23: Prepare to apply perlinNoise with a different offset point each frame.
Line 24 - 26: This is where all the magic happens. Applying perlinNoise to our Bitmap data.
Parameters of Interest:
parameter 1: affects frequency in the x direction.
parameter 2: affects frequency in the y direction.
parameter 3: number of octaves. Larger number = greater detail and requires more processing power.
Last parameter (offset): Defined earlier - This alters the x and y offset points for the octaves. (dramatic changes...)


EDIT: Actually I've fixed it myself!

http://antiup.net/view.php?id=22118474345realistic%20water%20effects.swf

:D
Krob
2

Posts: 2,311
Joined: Feb 2007
Rep: 10

View Profile
Apr 16, 2008 1:40 AM #116437
What rhymes with James Moer?





.....













.......













Gay Porn ! : O
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 16, 2008 5:11 PM #116688
Quote from Krob.
What rhymes with James Moer?





.....













.......













Gay Porn ! : O



Your a fag and you know that.

I don't know you but I already hate you to the full. Good work...
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Apr 16, 2008 6:03 PM #116709
You fixed it, well done.

I think that just drawing the water yourself and making it simple is better for animations cuz they're stick movies, it's not like it's gonna be a really serious series, cuz it'd look silly, cz it's with sticks. ololololololovxfg
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 16, 2008 6:25 PM #116725
Well, that's an impressive effect.

You got that explanation from the tut.

:<

Nice job fixing.
darkcampainger
2

Posts: 159
Joined: Aug 2006
Rep: 10

View Profile
Apr 16, 2008 9:43 PM #116810
Wow, that is pretty neat. I've never looked into working with bitmaps and images in AS, but it definintely looks like it could be worthwhile.

Also, to anyone else interested in how it works:
Realistic Flash Water Effect
They've got some pretty cool stuff on that site.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 17, 2008 2:15 PM #117237
I used another site. It got loads of special effect,animating,drawing,action script tutorials. You click on one section. FOr example an Animation section. And there;s about 20 pages of tutorials. Each page has about 1 tutorials. :D
FrAnKeH
2

Posts: 602
Joined: Aug 2005
Rep: 91

View Profile
Apr 19, 2008 2:01 AM #117877
That is some awesome actionscript.
Love the effect.