00:00
00:00
Newgrounds Background Image Theme

decafpanda 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!

The Flash 'Reg' Lounge

3,046,113 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2008-01-15 03:35:18


At 1/15/08 01:00 AM, jmtb02 wrote: Gameshows
Is it just me, or do they pick the least intelligent people to go on shows?

RE: Gameshows

I dunno about you but actually hope people walk off with nothin.. maybe im just a malicious guy but the only reason i stay tuned in to stupid shows like 'Lets make a deal' is the dream and hope that they walk of with a penny or a buck. It like makes my day.

While im on the subject of TV.... just when reality tv couldnt get worse.. it does... im currently watching a show on parking meter maids... oooooooooooooooooooo

Whats funny is, ill sit here and think about how someone goes pitching a show like this to the network... like i try and imagine being at some executive board meeting and being like ok in this show we uncover the grimey world of..... meter maids. 'WHY THATS BLOODY BRILLIANTTT!?!'

Whats next, a show on standing in line at the dmv?


None

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 08:16:51


At 1/15/08 03:35 AM, Luis wrote: At 1/15
I dunno about you but actually hope people walk off with nothin.. maybe im just a malicious guy but the only reason i stay tuned in to stupid shows like 'Lets make a deal' is the dream and hope that they walk of with a penny or a buck. It like makes my day.

While im on the subject of TV.... just when reality tv couldnt get worse.. it does... im currently watching a show on parking meter maids... oooooooooooooooooooo

Whats funny is, ill sit here and think about how someone goes pitching a show like this to the network... like i try and imagine being at some executive board meeting and being like ok in this show we uncover the grimey world of..... meter maids. 'WHY THATS BLOODY BRILLIANTTT!?!'

Whats next, a show on standing in line at the dmv?

ROFLMAO
lol i just like to see them fail while i knew the answer and jmtb it depends in our game shows after you get to 250,000 you can't lose it but well alltogh the dollar only worth like 3.7 shekels now..most of the time it's at 4.5 so it is a lot less of money...


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 09:27:40


Mental Programming

GetBounds(), it returns 4 value properties of an object: ymax/min, and xmax/min. If I want to create an advanced collision detection system using this method, I need to detect a crossing of min and maxs. For example, if objectA.xmin is < objectB.xmax && objectA y boundries are within object B's then objectA is touching objectB with a negative velocity (coming from right to left). This functions properly when the min/max values are in relation to _root, so that the coordinates of both objects are in the same scope.

Now, is this the right application? Or am I overlooking something? When I get bored I like to program mentally in my head and today's language of choice is Actionscript, since it's oh so applicable to what i'm currently doing, hahaha!!

Response to The Flash 'Reg' Lounge 2008-01-15 10:05:23


At 1/15/08 09:27 AM, Deathcon7 wrote: Mental Programming

GetBounds(), it returns 4 value properties of an object: ymax/min, and xmax/min. If I want to create an advanced collision detection system using this method, I need to detect a crossing of min and maxs. For example, if objectA.xmin is < objectB.xmax && objectA y boundries are within object B's then objectA is touching objectB with a negative velocity (coming from right to left). This functions properly when the min/max values are in relation to _root, so that the coordinates of both objects are in the same scope.

It's fairly pointless, whatever you're doing :P hitTestObject is vastly more efficient than four greater than or less than comparisons, especially when you throw in two getBounds.

But yeah, what you're saying should work out.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 10:11:19


At 1/15/08 10:05 AM, Paranoia wrote: It's fairly pointless, whatever you're doing :P hitTestObject is vastly more efficient than four greater than or less than comparisons, especially when you throw in two getBounds.

But yeah, what you're saying should work out.

What I'm trying to do is create terrain in a platformer the player can interact with. A hitTest just detects when two MCs are in contact, if I analyze the way the boundries interact than in that fashion I can not only get a hitTest but also information on where the hitTest is coming from so i can modify how the character will react to the object. For example, if its a cover box he can move the box or jump on top of it.

Response to The Flash 'Reg' Lounge 2008-01-15 10:14:52


Kd-trees

In preperation for implementing photon mapping into my ray tracer ive been learning about and figuring out the implementation of kd-tree generation, traversal, and nearest neighbour algorithm. and it is fuck fast.

the generation isn't amazingly fast but i have vast room for optimization. but jesus, let me give you an example:

100,000 points placed on the screen in dense clumps and in between aswell. For my algorithm to find the nearest point to the mouse, it takes roughly 0.15ms. (almost a tenth of a millisecond) and only actually checks between 4-12 points.

Doing an empty loop from 0 to 100,000 in AS3 takes about 1.1ms.

:D

Response to The Flash 'Reg' Lounge 2008-01-15 10:46:15


This WILL take a little while to generate the points, build the kd-tree and then render and draw into the bitmapdata instance, but once its done see how fast it is in calculating the cell that the mouse is in (highlighted red) and the nearest point in the set (circled black)

http://www.helnet.org/ngup/uploads/kdtre e.swf

:) 100,000 points

Response to The Flash 'Reg' Lounge 2008-01-15 11:18:55


At 1/15/08 10:11 AM, Deathcon7 wrote: What I'm trying to do is create terrain in a platformer the player can interact with. A hitTest just detects when two MCs are in contact, if I analyze the way the boundries interact than in that fashion I can not only get a hitTest but also information on where the hitTest is coming from so i can modify how the character will react to the object. For example, if its a cover box he can move the box or jump on top of it.

Even so, you're better just doing a normal hitTest first to avoid unnecessary strain on your processing if they're not touching:

if(this.hitTestObject(blah)){ direction = (Math.atan2(blah.y - y, blah.x - x) * 180) / Math.PI; trace(direction); }

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 11:45:04


At 1/15/08 10:46 AM, dELtaluca wrote: stuff

How come you kick so much ass at AS yet youve only got 1 game?

just something ive been wondering :D

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 12:01:21


I really respect DeltaLuca for being such a great programmer regardless that he doesn't have a massive portfolio. He's been around this forum a lot, helping a lot of people with complex programming. He's definitely an asset to this forum.

Wow, this is certainly going to turn into a hugfest shortly.


Hi there!

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 12:21:36


At 1/15/08 12:01 PM, jmtb02 wrote: Wow, this is certainly going to turn into a hugfest shortly.

*hug*

Response to The Flash 'Reg' Lounge 2008-01-15 12:55:18


Kd-tree's again

Got a new working algorithm for finding the k nearest neighbors in the kd-tree.

http://www.helnet.org/ngup/uploads/45993 2_kdtree.swf

only 50,000 points this time, finds the 100 nearest points. ;) the algorithm is actually almost identical to the nearest neighbour algorithm with a few quirks and rather than just replacing the closest point, it has to keep a list of the current n nearest points, and add the new point to the list, and once its full, replace points accordingly

Response to The Flash 'Reg' Lounge 2008-01-15 12:58:53


Artwork

So anybody have some recent artworks or anything in progress?


A Girl in A Room Halloween Collaboration II -Join Now!-

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 13:08:18


At 1/15/08 11:18 AM, Paranoia wrote:
At 1/15/08 10:11 AM, Deathcon7 wrote: What I'm trying to do is create terrain in a platformer the player can interact with. A hitTest just detects when two MCs are in contact, if I analyze the way the boundries interact than in that fashion I can not only get a hitTest but also information on where the hitTest is coming from so i can modify how the character will react to the object. For example, if its a cover box he can move the box or jump on top of it.
Even so, you're better just doing a normal hitTest first to avoid unnecessary strain on your processing if they're not touching:

if(this.hitTestObject(blah)){
direction = (Math.atan2(blah.y - y, blah.x - x) * 180) / Math.PI;
trace(direction);
}

I rather not get angular. Working with trigonometry is something I rather save for things that need it. I'm not an idiot at math, but I'd rather not have to deal with it. That would work too though and save me a couple conditionals so I won't entirely rule it out just yet.

Response to The Flash 'Reg' Lounge 2008-01-15 15:04:12


At 1/15/08 01:08 PM, Deathcon7 wrote: I rather not get angular. Working with trigonometry is something I rather save for things that need it. I'm not an idiot at math, but I'd rather not have to deal with it. That would work too though and save me a couple conditionals so I won't entirely rule it out just yet.

It's just an example :P You've got your relative x and y values so do what you will with them. Just remember never to pass up an opportunity to skip over heavy code you won't need 98% of the time.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 15:29:11


Coolest AS3 effect competition (but not really)

A shiny penny to whoever can make the sweetest looking bitmap effect by just editing the R, G and B values below :) i is the x value along the top left tile, j is the y value and k is an incrementing variable.

Just screw around with the bit labeled 'colour calculation. I'd post an example, but I can't for the life of me find any decent .swf upload sites.

import flash.display.Bitmap; import flash.display.BitmapData; import flash.events.TimerEvent; import flash.utils.Timer; var time:Timer = new Timer(30, 0); var i:uint; var j:uint; var k:uint; var bmd:BitmapData = new BitmapData(30, 30, true); var bmp1:Bitmap = new Bitmap(bmd); var bmp2:Bitmap = new Bitmap(bmd); var bmp3:Bitmap = new Bitmap(bmd); var bmp4:Bitmap = new Bitmap(bmd); bmp2.x = bmp4.x = bmp3.y = bmp4.y = 60; bmp2.scaleX = bmp4.scaleX = bmp3.scaleY = bmp4.scaleY = -1; addChild(bmp1); addChild(bmp2); addChild(bmp3); addChild(bmp4); time.addEventListener(TimerEvent.TIMER, onLoop); time.start(); function onLoop(ev:TimerEvent):void{ k ++; var red:uint; var green:uint; var blue:uint; var colour:uint; for(i = 1; i <= 30; i ++) for(j = 1; j <= 30; j ++){ // COLOUR CALCULATION red = 40 * Math.sin(i / 10 + j / 4 + k / 5) + k * 4; green = 30 * Math.sin(i / 4 + j / 10 + k / 2) + 20 * Math.cos(i / 6 + j / 8 + k / 8)+ k * 8 + 20; blue = 20 * Math.cos(i / 4 + j / 3 + k / 10) + k * 2 + 60; // ------------------ red = (red > 256) ? Math.abs(256 - red) : Math.abs(red); green = (green > 256) ? Math.abs(256 - green) : Math.abs(green); blue = (blue > 256) ? Math.abs(256 - blue) : Math.abs(blue); colour = ((red << 16) + (green << 8) + blue); bmd.setPixel(i, j, colour); } }

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 16:27:16


Suspended...[Late/Accused of Cheating]
So today I woke up in the morning, got ready for school and was on my way to start my day. About a couple seconds shy from 7:38 (when homeroom starts), I am told I am late. And therefore, I have to sign in late at the High School Main office.

When I got up to the office, the clock read "7:39" -- There is no way in hell, I was late. So just proceeding through the day, I get called down to the office and I have an hour detention due to the fact I was late. But no, not anymore -- I have to serve a "Saturday Detention" on the 26th, in which is a detention running from 8am til 12pm. Fucking nuts. I also was suspended for it being my 10th late to school. Really ridiculous. But no, that's not even half of it.

Today was a day a big upcoming test was about to take place in my US-History class. Mr.Balentine, probably one of the most idiotic assholish teachers you could ever get. The guy that'll just find ways to yank your chain and get you pissed. Hell, I do it back to him, so whatever. He's just an asshole. Since I forgot my study guide, I was copying some of the answers onto my friend's guide onto a separate piece of paper. Due to the fact that the paper was small, I was reviewing it right before the test took place.

Soon after, he tells us to put away our study guides and take everything off the test. I do so, and place the piece of paper in my pocket instead. Due to this, he walks over to me and goes, "Whats that under your leg?" Shocked by what he just said, I go "what?! what are you talking about?!" He quickly replied, "That paper, give it too me." Since I wasn't really worried about anything, I crumble it up and go "Alright, bro -- have fun." And I threw it in his hand. He than smirks and takes away the TEST that he didn't even hand to me yet and goes "Oh, now you get a zero for it, no worries now." He takes the paper and attaches it too a main office slip reading "When I was giving out the test material, I caught Sean hiding this cheat sheet under his leg."

I laughed at the whole deal, when I was called down to the office. I just gave up, not even trying to figure the false accusations. Whatever. Seriously, it was ridiculous. I was accused for cheating when I really wasn't.. but what does it seem like "Small piece of paper with answers written on it.." And to top it off, it wasn't even under my leg. But whatever, he's a psycho. Due to this, I was given ANOTHER suspension. So now I am suspended tomorrow til Friday. Great. I even have that lame-ass Saturday detention to go too. Isn't this the life... Psh, whatever.

Any thoughts?


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 16:38:40


More Flash time.

Response to The Flash 'Reg' Lounge 2008-01-15 16:39:46


AS: Wars

Races have been posted! Go check it out.


At first there was nothing, then it exploded. - Big bang

Response to The Flash 'Reg' Lounge 2008-01-15 16:46:13


Double post :3....

At 1/15/08 03:04 PM, Paranoia wrote: It's just an example :P You've got your relative x and y values so do what you will with them. Just remember never to pass up an opportunity to skip over heavy code you won't need 98% of the time.

I just wanted to say thanks for the advice. Much appreciated. I'll most likely end up using something like what you suggested down the line when its time to optimize.

Response to The Flash 'Reg' Lounge 2008-01-15 16:48:23


At 1/15/08 04:27 PM, Rudy wrote: Suspended...[Late/Accused of Cheating]

I've always had problems with disciplining in school. I don't understand how a suspension (taking a child out of school) is a way to teach a student that his behavior is had.

Rudy, that's really tough... I mean, teachers are supposed to be mentors but when you are merely doing as told... that's rough. I went to a college where they had a system called "Judicial Affairs", which was a panel you got to plea your case to in case you were caught cheating or something bad like that. That way, if people were wrongly accused they can build a case and prove that they weren't cheating. I found in most of my primary school though, teacher's law was law. I still don't understand that methodology, that a teacher can be perfect in assumption and automatically knows better.


Hi there!

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 17:58:43


At 1/15/08 04:48 PM, jmtb02 wrote: I've always had problems with disciplining in school. I don't understand how a suspension (taking a child out of school) is a way to teach a student that his behavior is had.

Yeah, I never quite understood that much either jmtb02. I was always quite wondering on how taking a kid out of school, the place they can't stand, and letting them stay home for the day, doing absolutely nothing, really quite teachers them. It makes them more eligible and wanting to stay off more, due to the fact. But than again, too many suspensions = expulsion.

I do really wish our school had something like "Judicial Review", I just learned about the start of it, It'll be cooler and easier to let our school hear my case and just prove the teachers wrong but nope, Teachers > Students. It's bullshit and especially when teachers like him, takes advantage of their authority.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 18:25:58


At 1/15/08 04:48 PM, jmtb02 wrote:
I found in most of my primary school though, teacher's law was law. I still don't understand that methodology, that a teacher can be perfect in assumption and automatically knows better.

I've been pretty lucky in that aspect of teachers. Most of mine haven't been all hard ass and like "You're going to do what I say because I said it". I've had a few like that though...

One time, during an important test, I was finished and started glancing around the room. The teacher saw this and thought I was cheating. So he took my test away and said I'd be given a Zero. I immediately got upset and was kind of... yelling... in my defense.

Well, I worked out a deal with him. The other Global Studies teacher would work out a brand new test that was of higher difficulty than the rest and have me take it alone. If I got mastery (above an 85%) on it, I could keep that grade and the zero would go.

Well, I took that test and got a 104 on it (2 EC questions included because the normal test had them) and spent the rest of that month with a "In your face n00b" attitude toward him.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 18:30:47


At 1/15/08 12:01 PM, jmtb02 wrote: I really respect DeltaLuca :

What 'bout me?
And where's my hug? >:(

Gameshows

Most hurt my head. Some are cool to watch some make me feel retarded - like "Are you smarter then a 3rd grader!?".
I totally could be the host of one I think. Screw Bob Barker and junk. Get me out their with a cute lil' microphoune and a snazy lil' suit. Mhm, yes sir Ryan Seacress got nothin' on me. :3


www.DuderEntertainment.com/ | Makin' Laughs and Kickin' Ass! >:3

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 20:04:15


At 1/15/08 03:29 PM, Paranoia wrote: Coolest AS3 effect competition (but not really)

Why don't you try out the AIF toolkit instead

Response to The Flash 'Reg' Lounge 2008-01-15 20:22:00


In more happy news my birthday party is on saturday. you are all invited.


None

BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 20:52:05


At 1/15/08 04:48 PM, jmtb02 wrote:
At 1/15/08 04:27 PM, Rudy wrote: Suspended...[Late/Accused of Cheating]
I've always had problems with disciplining in school. I don't understand how a suspension (taking a child out of school) is a way to teach a student that his behavior is had.

I always thought it was a way of handing over the disciplining to the parents. I mean they miss school a day, but the parents find out about it and probably take further action. If it was my family I'd get the shit kicked out of me.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 20:57:12


At 1/15/08 12:58 PM, darx wrote: Artwork

So anybody have some recent artworks or anything in progress?

click my sig/view blog :)


BBS Signature

Response to The Flash 'Reg' Lounge 2008-01-15 21:20:51


At 1/15/08 12:58 PM, darx wrote: Artwork

So anybody have some recent artworks or anything in progress?

HERE YOU GO! theres some art hidden in there.

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2008-01-15 22:16:50


At 1/15/08 08:22 PM, Luis wrote: In more happy news my birthday party is on saturday. you are all invited.

Really sucks that you're going to be in the UK, bring me.


BBS Signature