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 07-02-2003, 08:55 PM   #1
ToddziLLa
She wants me.
 
Join Date: Nov 2002
Posts: 87
Send a message via AIM to ToddziLLa
Default Animated optical illusion...can ya do it?!?

I know I have not the skills to create something like this...but I wanna see what you guys come up with. I'm looking for an animated optical illusion...no more than 40 or 50 lines. You can use lines, dots, or whatever your creative little brains can think of. I look forward to see what you all come up with!
ToddziLLa is offline   Reply With Quote
Old 07-03-2003, 11:54 PM   #2
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default

Errr... WHA'??
pom is offline   Reply With Quote
Old 07-04-2003, 11:42 PM   #3
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

I second that Wha'??

Perhaps you could elaborate, and maybe even show us an example.
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 07-07-2003, 02:34 PM   #4
webguy
Registered User
 
webguy's Avatar
 
Join Date: May 2003
Location: west palm beach
Posts: 1,650
Send a message via ICQ to webguy Send a message via AIM to webguy
Default

You are getting sleepy!! Very, very sleepy!

ActionScript Code:
_global.levelCount=1; function createBox () {     newBox = _root.createEmptyMovieClip("box"+levelCount, levelCount++);     newBox.lineStyle(1);     newBox.lineTo(25,0);     newBox.lineTo(25,25);     newBox.lineTo(0,25);     newBox.lineTo(0,0);     newBox._x = Stage.width/2;     newBox._y = Stage.height/2;     newBox.onEnterFrame = function () {         if(this._xscale == 1000) {             this.removeMovieClip();         } else {             this._xscale+=10;             this._yscale+=10;             this._x-=1.2;             this._y-=1.2;         }     } } createBoxID = setInterval(this, "createBox", 500);
webguy is offline   Reply With Quote
Old 07-07-2003, 11:00 PM   #5
spot
Registered User
 
Join Date: May 2003
Posts: 7
Thumbs up Optical Illusion

That cool? I will oneday be able to do things like that.
spot is offline   Reply With Quote
Old 07-08-2003, 07:21 AM   #6
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

may I add something to webguy code so it doesn't jump (for removing the MCs)
ActionScript Code:
_global.levelCount=1; function createBox () {         newBox = _root.createEmptyMovieClip("box"+levelCount, levelCount++);         newBox.lineStyle(1);         newBox.lineTo(25,0);         newBox.lineTo(25,25);         newBox.lineTo(0,25);         newBox.lineTo(0,0);         newBox._x = Stage.width/4;         newBox._y = Stage.height/4;         newBox.onEnterFrame = function () {                 if(this._xscale == 1000) {                         this.removeMovieClip();                 } else {                         this._xscale+=10;                         this._yscale+=10;                         this._x-=1.2;                         this._y-=1.2;            this._alpha -=this._xscale*.005  //**** Just this                 }         } } createBoxID = setInterval(this, "createBox", 500);
__________________
â€* 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 07-08-2003, 01:26 PM   #7
webguy
Registered User
 
webguy's Avatar
 
Join Date: May 2003
Location: west palm beach
Posts: 1,650
Send a message via ICQ to webguy Send a message via AIM to webguy
Default

thats cool farafiro.. I would never have thought of that code. I really really suck at math..used to be good at it in high school, but I guess all the malted hops and bong resin killed those brain cells long ago . But I am learning once again, many thanks to the reply you posted to my Flash Math Thread. A little out of my league but if I read it 10x over I should understand it sooner or later.

Last edited by webguy; 07-08-2003 at 01:32 PM..
webguy is offline   Reply With Quote
Old 07-08-2003, 01:30 PM   #8
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

read the first line i wrote
__________________
â€* 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 07-08-2003, 05:36 PM   #9
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

felt free to change your one, but it's still your idea

ActionScript Code:
global.levelCount = 1; function createBox() {     newBox = _root.createEmptyMovieClip("box"+levelCount, levelCount++);     newBox.lineStyle(1, 0x000000);     newBox.lineTo(-25, 0);     newBox.lineStyle(1, 0x333333);     newBox.lineTo(-25, -20);     newBox.lineTo(0, -20);     newBox.lineTo(0, 0);     if (Key.isDown(Key.LEFT)) {         _root.c = _root.c+3;}     if (Key.isDown(Key.RIGHT)) {         _root.c = _root.c-3;}     newBox._x = Stage.width/4+c;     newBox._y = Stage.height/4;     newBox.onEnterFrame = function() {         if (this._xscale == 3000) {             this.removeMovieClip();         } else {             this._xscale += 10             this._yscale += 10             this._x += 1.4             this._y += 0.9             this._alpha -= this._xscale*.001;}}} createBoxID = setInterval(this, "createBox", 200);
when I first saw it i thought of driving through a tunnel! I just made the road not that straight as it was!

<edit> the first one was a bit buggy! so I changed the code! Press Left and right, to move the road </edit>

Last edited by McGiver; 07-08-2003 at 06:05 PM..
McGiver is offline   Reply With Quote
Old 07-08-2003, 07:46 PM   #10
magicwand
Senior Member
 
magicwand's Avatar
 
Join Date: Oct 2002
Location: NY
Posts: 657
Default

ActionScript Code:
global.levelCount = 1; var neg=1 function createBox() {         newBox = _root.createEmptyMovieClip("box"+levelCount, levelCount++);         newBox.lineStyle(1, 0x000000);         newBox.lineTo(-25, 0);         newBox.lineStyle(1, 0x333333);         newBox.lineTo(-25, -20);         newBox.lineTo(0, -20);         newBox.lineTo(0, 0);         newBox.onEnterFrame = function() {                 if (Math.abs(this._xscale) > 200) {                         this.removeMovieClip();                         neg=(-1)*neg;                 } else {                     trace(Number(neg)*4)                     this._xscale =this._yscale +=Number(neg)*4;                 }                         this._x += Math.ceil(Math.random()*10-3)                         this._y += Math.ceil(Math.random()*10-3)                         this._rotation+=Math.ceil(Math.random()*10)                         }} createBoxID = setInterval(this, "createBox", 100);

i tried to change the code but...didnt get much..
my failure.
__________________
"If a man does not keep pace with his
companions, perhaps it is because he hears a different drummer." Thoreau
magicwand 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 08:07 AM.


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.