00:00
00:00
Newgrounds Background Image Theme

dragonphoreal just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Denvish Day

14,774 Views | 237 Replies
New Topic Respond to this Topic

Response to Denvish Day 2005-12-05 14:49:36


At 12/5/05 02:47 PM, Glaiel_Gamer wrote: Ok 'knowhat? I'm gonna take a quick look into the lag again and see if i can locate the problem

Great! The game would be really great if it wasn't for the lag.


BBS Signature

Response to Denvish Day 2005-12-05 14:52:08


At 12/5/05 02:47 PM, Glaiel_Gamer wrote: Ok 'knowhat? I'm gonna take a quick look into the lag again and see if i can locate the problem

I'm guessing it's on the spammers' movement code somewhere, it seems to get drastically worse each time a new one enters the pen. Above about 12-15 spammers, my PC just doesn't handle it, even on LoQ, and my specs aren't that bad.


- - Flash - Music - Images - -

BBS Signature

Response to Denvish Day 2005-12-05 14:54:53


At 12/5/05 02:40 PM, Glaiel_Gamer wrote: Can you got 32 points on his game? It's hilarious

Argh, I just got 31.

It's. Evil. Argh.

lag

I told you, didn't I tell you?


Sup, bitches :)

BBS Signature

Response to Denvish Day 2005-12-05 14:55:56


At 12/5/05 02:52 PM, Denvish wrote:
At 12/5/05 02:47 PM, Glaiel_Gamer wrote: Ok 'knowhat? I'm gonna take a quick look into the lag again and see if i can locate the problem
I'm guessing it's on the spammers' movement code somewhere, it seems to get drastically worse each time a new one enters the pen. Above about 12-15 spammers, my PC just doesn't handle it, even on LoQ, and my specs aren't that bad.

Well i dont know, i got rid of all the Math.sqrt's here's the code:

onClipEvent (load) {
if (_name != "noob") {
_x = 275;
_y = 200;
xspeed = 0;
yspeed = 0;
r = random(360);
speed = 2;
xspeed = speed*Math.sin(r*(Math.PI/180));
yspeed = speed*Math.cos(r*(Math.PI/180));
stat = 5;
this.gotoAndStop(5);
} else {
nmbr = 1;
pp = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "noob") {
if (_root.del == true) {
removeMovieClip(this);
}
_rotation = r;
if (stat == 1) {
_x += xspeed;
_y -= yspeed;
p = random(20);
if (p == 0) {
r = random(360);
xspeed = speed*Math.sin(r*(Math.PI/180));
yspeed = speed*Math.cos(r*(Math.PI/180));
}
xdist = _x-275;
ydist = _y-200;
dist = xdist*xdist+ydist*ydist;
if (dist>(350/2-_width/2)*(350/2-_width/2)) {
r = Math.atan2(_y-200, _x-275)/(Math.PI/180)+90;
stat = 2;
}
}
if (_root.ban.hitTest(_x, _y, true) && stat != 5 && stat != 4) {
if (_root.ban._currentframe == 2) {
stat == 1 || stat == 2 ? _root.score += 1 : null;
stat = 3;
r = _root.ban._rotation;
xspeed = 2*speed*Math.sin(r*(Math.PI/180));
yspeed = 2*speed*Math.cos(r*(Math.PI/180));
r += 180;
timerA = 13;
timerB = 26;
}
if (_root.ban._currentframe == 3) {
stat == 1 || stat == 2 ? _root.score += 2 : null;
stat = 3;
r = _root.ban._rotation;
xspeed = 2*speed*Math.sin(r*(Math.PI/180));
yspeed = 2*speed*Math.cos(r*(Math.PI/180));
r += 180;
timerA = 20;
timerB = 60;
}
if (_root.ban._currentframe == 4) {
stat == 1 || stat == 2 ? _root.score += 3 : null;
stat = 3;
r = _root.ban._rotation;
xspeed = 2*speed*Math.sin(r*(Math.PI/180));
yspeed = 2*speed*Math.cos(r*(Math.PI/180));
r += 180;
timerA = 25;
timerB = 150;
}
if (_root.ban._currentframe == 5) {
stat = 4;
_root.score += 10;
}
}
if (stat == 3) {
timerA -= 1;
timerB -= 1;
if (timerA>0) {
_x += xspeed;
_y -= yspeed;
}
if (timerB == 0) {
r = random(360);
xspeed = speed*Math.sin(r*(Math.PI/180));
yspeed = speed*Math.cos(r*(Math.PI/180));
stat = 1;
}
}
if (_root.life<=0) {
_root.del = true;
_root.play();
removeMovieClip(this);
}
stat == 1 ? this.gotoAndStop(1) : null;
stat == 2 ? this.gotoAndStop(2) : null;
stat == 3 ? this.gotoAndStop(3) : null;
stat == 4 ? this.gotoAndStop(4) : null;
stat == 5 ? this.gotoAndStop(5) : null;
} else {
if (pp == 0) {
duplicateMovieClip(this, "s"+nmbr, nmbr);
nmbr++;
_root.score += 10;
}
pp = random(200);
_root.stick == 2 ? pp=random(175) : null;
_root.stick == 3 ? pp=random(150) : null;
_root.dA ? pp=random(100) : null;
_root.score>1000 ? pp=random(50) : null;
if (_root.score>60 && _root.stick == 1) {
_root.stick = 2;
_root.upgrade1.play();
}
if (_root.score>200 && _root.stick == 2) {
_root.stick = 3;
_root.upgrade2.play();
}
if (_root.score>400 && _root.dA == false) {
_root.dA = true;
_root.upgrade3.play();
}
}
}

Response to Denvish Day 2005-12-05 14:58:55


At 12/5/05 02:54 PM, -Christmas- wrote:
At 12/5/05 02:40 PM, Glaiel_Gamer wrote: Can you got 32 points on his game? It's hilarious
Argh, I just got 31.

It's. Evil. Argh.

108! Me>You!

J/k

SIG YOINK!

BBS Signature

Response to Denvish Day 2005-12-05 15:05:31


At 12/5/05 02:47 PM, Glaiel_Gamer wrote: Ok 'knowhat? I'm gonna take a quick look into the lag again and see if i can locate the problem

I wasn't actually expectiong the blam want to just be rotation, i was busy thinking of overly complecated ways to do it, without even seeing the obvious piss simple solution:D

Silly me.

Response to Denvish Day 2005-12-05 15:05:35


At 12/5/05 02:55 PM, Glaiel_Gamer wrote:
At 12/5/05 02:52 PM, Denvish wrote:
At 12/5/05 02:47 PM, Glaiel_Gamer wrote: Ok 'knowhat? I'm gonna take a quick look into the lag again and see if i can locate the problem
I'm guessing it's on the spammers' movement code somewhere, it seems to get drastically worse each time a new one enters the pen. Above about 12-15 spammers, my PC just doesn't handle it, even on LoQ, and my specs aren't that bad.
Well i dont know, i got rid of all the Math.sqrt's here's the code:

Wuh..... I ain't analysing that lump ;S
I'd hazard a guess that the performance would improve if you used a square bin, rather than a circular one (the calculations required for hitting the edges would be a lot less), but then it wouldn't look half as cool.


- - Flash - Music - Images - -

BBS Signature

Response to Denvish Day 2005-12-05 15:05:49


At 12/5/05 02:55 PM, Glaiel_Gamer wrote: here's the code

Wow, your style is kinda random, you use a little bit of everything =P


Sup, bitches :)

BBS Signature

Response to Denvish Day 2005-12-05 15:10:41


At 12/5/05 03:05 PM, Denvish wrote: Wuh..... I ain't analysing that lump ;S
I'd hazard a guess that the performance would improve if you used a square bin, rather than a circular one (the calculations required for hitting the edges would be a lot less), but then it wouldn't look half as cool.

actually the circular part is faster. I got rid of the sqrt for it.

i took the xdistance from the center and ydist from the center
xdist*xdsit+ydist*ydist for pythagorean theorem. But instrad of taking the root, i just chacked if it was > 300^2
not that processor intesnive.

I cant fing the lag problem.

Response to Denvish Day 2005-12-05 15:11:00


At 12/5/05 03:05 PM, -Christmas- wrote: Wow, your style is kinda random, you use a little bit of everything =P

Thought the same thing, there's lots of == true and stuff like that. But I can't find a lag causer in there.

Denvish's theory is interesting, there is after all quite many noobs to perform trig equations on, every frame. Not sure though.


BBS Signature

Response to Denvish Day 2005-12-05 15:15:48


God i missed it! But not next year!


This signature is not true

BBS Signature

Response to Denvish Day 2005-12-05 15:18:55


At 12/5/05 03:11 PM, Santazien wrote:
At 12/5/05 03:05 PM, -Christmas- wrote: Wow, your style is kinda random, you use a little bit of everything =P
Thought the same thing, there's lots of == true and stuff like that. But I can't find a lag causer in there.

i dont have any == true in there..

Response to Denvish Day 2005-12-05 15:20:15


Erm... Hey, glaiel? What about the hitTests? having too many hitTests going on at the same time may cause lags. o.o At least so ive heard.

Response to Denvish Day 2005-12-05 15:22:36


At 12/5/05 03:20 PM, Xmas_Blaze wrote: Erm... Hey, glaiel? What about the hitTests? having too many hitTests going on at the same time may cause lags. o.o At least so ive heard.

only 1 hittest per n00b

Response to Denvish Day 2005-12-05 15:24:58


At 12/5/05 03:22 PM, Glaiel_Gamer wrote:
At 12/5/05 03:20 PM, Xmas_Blaze wrote: Erm... Hey, glaiel? What about the hitTests? having too many hitTests going on at the same time may cause lags. o.o At least so ive heard.
only 1 hittest per n00b

Yeah. But.

You are having 1 hitTest per n00b. And, say there are 12 n00bs. thats already 12 hitTests.

Then i assume (i didnt quite play your game too much) there will be hitTests for the circle. Or, checking that if the n00bs hit eachother.. or i dont know. Any other hitTests may cause it lag.

Response to Denvish Day 2005-12-05 15:28:26


At 12/5/05 03:24 PM, Xmas_Blaze wrote: Yeah. But.

You are having 1 hitTest per n00b. And, say there are 12 n00bs. thats already 12 hitTests.

12 isnt a lot

Then i assume (i didnt quite play your game too much) there will be hitTests for the circle. Or, checking that if the n00bs hit eachother.. or i dont know. Any other hitTests may cause it lag.

nope, nope, and nope

Response to Denvish Day 2005-12-05 15:30:26


At 12/5/05 03:18 PM, Glaiel_Gamer wrote: i dont have any == true in there..

Eh?

At 12/5/05 02:55 PM, Glaiel_Gamer wrote: if (_root.del == true) {

Also, can't this bit

stat == 1 ? this.gotoAndStop(1) : null;
stat == 2 ? this.gotoAndStop(2) : null;
stat == 3 ? this.gotoAndStop(3) : null;
stat == 4 ? this.gotoAndStop(4) : null;
stat == 5 ? this.gotoAndStop(5) : null;

become

_currentframe!=stat ? gotoAndStop(stat) : 0

Or if you have a stat 6 (Which I think you do) then:

stat!=6? _currentframe!=stat ? gotoAndStop(stat) : 0 : 0


Sup, bitches :)

BBS Signature

Response to Denvish Day 2005-12-05 15:30:39


At 12/5/05 03:28 PM, Glaiel_Gamer wrote: nope, nope, and nope

So, the only hitTest used is for the n00bs? oh well. Then i have no idea.

Response to Denvish Day 2005-12-05 15:40:00


I tossed a little message on the front page about Denvish day, but someone will probably bump it out. We should all use our super powers to try and keep it up there all day.

I have to thank Denvish for helping me out with AS, even if he had no idea he was helping me.

Thanks!

Response to Denvish Day 2005-12-05 15:53:59


wtf?!

SaintoShun: lol
SaintoShun: thought it would be funny
iammoflow: Dude, no thanks but I am not into having sex with minors.
SaintoShun: i never said that >.>
iammoflow: I had to scare away that idiot, and it seems I got exactly what I wanted lol
SaintoShun: lol
iammoflow: So, are you one of inglor's drones?
SaintoShun: yes
iammoflow: figures
iammoflow: I'll gladly hire yah with your parents' permission anyway, so long as you got the talent
SaintoShun: i got the talent, but i dont want
iammoflow: why did you email me then lol?
SaintoShun: im busy in an important event from NG so if you excuse me, i e-mailed you to see if you were truly homo or something
iammoflow: LIKE I SAID, I DON'T HAVE SEX WITH LITTLE CHILDREN..so no thanks I am not interested!
iammoflow: lol
SaintoShun: lol, good for you
iammoflow: That's not the best way to find out btw
iammoflow: Your writing style reminds me a person I know ;-)
iammoflow: Shame!
SaintoShun: congratulations, you just made my day
iammoflow: I know I did :D
SaintoShun: good for you
iammoflow: you too buddy
SaintoShun: well, have a nice day,remember stay away from children
iammoflow: aww, thanks..and be sure to stay away from men dick yourself :-)
iammoflow: It's been a pleasure.
SaintoShun: good bye little man from under the bed
iammoflow: Bye bye, thank you and come again.
SaintoShun: no im not Bauman
iammoflow: No, i'm not Tom Fulp
iammoflow: ;-)
SaintoShun: ofcourse your not, thank god to that
iammoflow: Thank god indeed
SaintoShun: have a nice life mr wanabe MJ
iammoflow: Thanks, I always wanted to be Micheal Jordan :D
SaintoShun: good for you
iammoflow: thanks for the compliment
SaintoShun: any day
iammoflow: yep yep
SaintoShun: cya, go for it, make the jump
iammoflow: Thanks, I believe I'll dunk someday
SaintoShun: yeah, i also believe cows will fly
iammoflow: then you're just a fucktard lol
iammoflow: ;-)
SaintoShun: nah, you are couse you think youl be like MJ
iammoflow: learn english ESL boy
SaintoShun: when your dick grows 10 inches
iammoflow: I told you kid, I don't swing that way..quit praising my gigantic penis
SaintoShun: yup yup yup, good for you
iammoflow: whoa, calm down there with the yup yup yup, I AM NOT GOING TO FUCK YOU, quit begging
SaintoShun: ok
iammoflow: Thanks for understanding
SaintoShun: i did, like aeons ago
iammoflow: right..
SaintoShun: didnt you had to go?, i mean, your show wasnt about to start?
iammoflow: oh, yeah you're right..cya friend
SaintoShun: cya, good luck with your extreme makeover

Response to Denvish Day 2005-12-05 16:22:55


rofl @ mr.mo

Response to Denvish Day 2005-12-05 16:26:07



WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to Denvish Day 2005-12-05 16:27:48


At 12/5/05 04:26 PM, -Mogly- wrote: i just scanned the page and didnt see this anywhere . its by Mr.Fulp.

it's been posted about 3 times already

Response to Denvish Day 2005-12-05 16:29:51


All you have proved with that IM convo is that you were being a right dick


- Matt, Rustyarcade.com

Response to Denvish Day 2005-12-05 16:31:14


shit i didnt realise it was Denvish day today. i thought there was still like a month in it. ah well, missed it now

Toast IM me when you get on.


WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to Denvish Day 2005-12-05 16:37:15


NJ, a right dick its better than being a flat one

Response to Denvish Day 2005-12-05 16:47:48


At 12/5/05 12:47 PM, -Christmas- wrote:
At 12/5/05 12:44 PM, lngIor wrote: I live only to amuse
ingior eh? Rofflegoatse.

Haha, nice one, inglor. I wish I could have 2 other toast alts =)

I'm in, working on a game with Mogly. We still havn't got much done but we will hurry up - only 3 days left?


BBS Signature

Response to Denvish Day 2005-12-05 17:36:35


Toast.. Denvish Day is today, hence the front page submissions by Glaiel and Fulp =P

Spam, better than your usual work.. needs a background though.


Sup, bitches :)

BBS Signature

Response to Denvish Day 2005-12-05 17:38:04


At 12/5/05 05:21 PM, SpamBurger wrote: My DD submission.
At 11/30/05 04:03 PM, SpamBurger wrote: me=not in

That's weird =P


BBS Signature

Response to Denvish Day 2005-12-05 17:41:15


At 12/5/05 05:38 PM, Santazien wrote:
At 12/5/05 05:21 PM, SpamBurger wrote: My DD submission.
At 11/30/05 04:03 PM, SpamBurger wrote: me=not in
That's weird =P

LOL
Thanks for making an effort Mr Burger. Fifened, of course ;)


- - Flash - Music - Images - -

BBS Signature