Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Community Boards > Just for Kicks Challenges

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-20-2003, 02:09 PM   #1
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default Challenge (eye-candy) - Water

The theme is WATER, 25 lines is the maximum.
Show me what you got, people!

pom
pom is offline   Reply With Quote
Old 05-20-2003, 02:59 PM   #2
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

so, where is yours??
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-20-2003, 04:11 PM   #3
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default

Where is it specified that I should be the first to post?
pom is offline   Reply With Quote
Old 05-20-2003, 07:38 PM   #4
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

within the rules, Jesse says the starter should .............
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-21-2003, 09:57 AM   #5
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default

Damn it! I knew I should have taken reading lessons at some point in my life...

I won't be able to produce anything before the weekend, unfortunately so let's wait until then for this challenge.

pom

Last edited by pom; 05-21-2003 at 10:10 AM..
pom is offline   Reply With Quote
Old 05-21-2003, 11:25 AM   #6
inudor
Registered User
 
inudor's Avatar
 
Join Date: Feb 2003
Location: Barcelona
Posts: 29
Default water?

Eeeeeeeeeeeehm... uuuuuuhm... what do you understand for "water"

This is the only idea I had!

ActionScript Code:
/* * Description: waves of dots moving! */ wavesNum = 3; // Tested with 3 waves phase = new Array(index); // Different initial phase for each wave vertOff = new Array(index); // Vertical offset for each wave steps = 26; // Controles the wave's width amplitude = 8; // Controles the waves amplitude // Initializations for(index=0; index<wavesNum; index++){     _root.createEmptyMovieClip("mc"+index, 1+index);     phase[index] = 1.5*index;     vertOff[index] = 100 + index*50; } // Draw method function draw() {                          for(index=0; index<wavesNum; index++){         // Clear the content to repaint         _root["mc"+index].clear();         for(i=0;i<steps;i+=0.5){             xpos = i*22; // A good distance to display the dots without overlapping             ypos = vertOff[index] + Math.sin(i+phase[index])*amplitude;             _root["mc"+index].moveTo(xpos, ypos);             blue = 0x0000FF + ypos;             _root["mc"+index].lineStyle(10, blue);             // Draw a little line to simulate a dot             _root["mc"+index].lineTo(xpos+0.15, ypos);            }         // The next time we draw the wave it will have a diferent phase         // to simulate the movement         phase[index] += 0.5;     } } setInterval(draw, 25);

I find this challenges a funny way of sharing code!
inudor is offline   Reply With Quote
Old 05-21-2003, 12:50 PM   #7
kimgar
Registered User
 
Join Date: Dec 2001
Posts: 106
Default

ooooh, nice one inudor!

love your code, reminds me of the good old times.
kimgar is offline   Reply With Quote
Old 05-21-2003, 04:06 PM   #8
GeorgeG
Registered User
 
Join Date: May 2003
Posts: 1
Default

Ok here is my effort, it's supposed to be raindrops!! My first flash coding effort so don't be too harsh!

ActionScript Code:
i = 0; maxDrips = 100; function startDrip(_xpos,_ypos, _index) {     if (_index < 0) {         _root.createEmptyMovieClip("index"+i,2+i);         _index = i++;     }     else         _root["index"+_index].clear();     _root["index"+_index]._x = _xpos;     _root["index"+_index]._y = _ypos;     _root["index"+_index].lineThickness = 10;     _root["index"+_index].lineStyle(10, 0x0000FF, 100);     _root["index"+_index].lineTo(0.15, 0); } function updateWater() {     for (z = 0; z < i;z++) {         _root["index"+z].clear();         _root["index"+z].lineStyle(++_root["index"+z].lineThickness, 0x0000FF, 100-_root["index"+z].lineThickness);         _root["index"+z].lineTo(0.15, 0);         if (_root["index"+z].lineThickness == 99)             startDrip(random(500), random(500),z);     }     if (i < maxDrips)         startDrip(random(500), random(500),-1); }    setInterval(updateWater, 25);

Wheeeee!
GeorgeG is offline   Reply With Quote
Old 05-23-2003, 10:25 AM   #9
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

Wow. I sure wish we started this forum a long time ago. Two killer entries so far! Keep them up! I might even try my hand at this one but I gotta think of an idea first.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 05-23-2003, 03:02 PM   #10
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

this eye-candy water is no bad idea, the problem is we all lack eye-candy ideas for projects with less than 25 lines (-->respect to george and inudor who managed to make it within these limits). The thing with eye candy is, that most beatiful things need time, and either premade graphics/movies, or at least much more lines

-->My idea is a waterdrop which keeps its hull: because i am too lazy to do that on my own (and it would be probably bigger than 25 lines) look the actual Bit 101 experiment of 21 und 22.05.
(he must have stolen my idea )
McGiver is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.