nathan99
January 15th, 2006, 02:12 AM
:P Heres my entry, im pretty sure it counts for exaclty 25 lines.
Read Down For Code
bootiteq
January 15th, 2006, 03:48 AM
Whoa Nathan!!! That is truely awesome dude! nice work!!!:thumb2:
nathan99
January 15th, 2006, 04:43 AM
_root.createEmptyMovieClip("square", 0);
square._alpha = f=0;
square.beginFill(0x5B68CD);
square.moveTo(-5, -5);
square.lineTo(-5, -5);
square.lineTo(-5, 5);
square.lineTo(5, 5);
square.lineTo(5, -5);
square._x = Stage.width/2;
square._y = Stage.height;
function dup(xp, yp, sp, xc, k, ct) {
for (var i = 0; i<ct; i++) {
square.duplicateMovieClip("exploder"+i, _root.getNextHighestDepth(), {_xscale:xc, _yscale:xc, _x:xp, _y:yp, _alpha:xc, _rotation:random(360), s:random(2)+1/k, sp2:sp, di:random(2), xsp2:Math.random()*20/(k+1), onEnterFrame:function () {
this.di == 0 ? this._x -= this.xsp2 : this._x += this.xsp2;
this._alpha<0 ? this.removeMovieClip() : this._alpha -= 2;
this._y -= (this.sp2 -= this.s);
}});
}
}
function up() {
dup(random(Stage.width), random(Stage.height), random(10), random(25)+25, 5, 10);
dup(square._x, square._y, random(20)+10, 100, 1, random(6));
square.duplicateMovieClip("explode"+[++f], _root.getNextHighestDepth(), {_alpha:random(100), sp:random(8)+2, _x:random(Stage.width), _y:Stage.height, onEnterFrame:function () {
this._xscale = this._yscale=this._alpha;
this._y<0 ? this.removeMovieClip() : this._y -= this.sp;
}});
}
k = setInterval(up, 50);
i dunno what happed to the first one :ne:
**EDIT #2: My flash experienced a mjor bug, here's the correct code
hybrid101
January 15th, 2006, 04:48 AM
hey man! it doesn't work in my flash. can you post the swf? thanks!
nathan99
January 15th, 2006, 04:54 AM
its up one the first post
http://www.kirupa.com/forum/attachment.php?attachmentid=32610&d=1137305572
NiñoScript
January 15th, 2006, 10:52 AM
woah! i like it :)
its like having square fireworks in my comp :P
nathan99
January 16th, 2006, 01:16 AM
gald u like it :)
Barcadia
January 16th, 2006, 05:25 AM
this is your best entry so far
nathan99
January 16th, 2006, 08:02 AM
this is your best entry so far
i agree. this and my platform game:P
http://www.kirupa.com/forum/showthread.php?t=205675
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.