Topic: *poke* Hey Grumble Pages that link to <a href="https://ozoneasylum.com/backlink?for=11342" title="Pages that link to Topic: *poke* Hey Grumble" rel="nofollow" >Topic: *poke* Hey Grumble\

 
Author Thread
Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 07-27-2002 06:31 Edit Quote

You said you wanted to see my latest flash doodlie-poo thing right? Here you go: http://www.osysi.net/files/Fly.exe

Shine and shine.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 07-27-2002 12:45 Edit Quote

hehe. nice doodlie-poo there! the interface does only consist of two black boxes for me. is that supposed to be?

good sig too!

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 07-28-2002 08:51 Edit Quote

Yeah. It's suppost to be that way. When I was in Taiwan, we visited a reasturant that was on the 47th floor of a skyscraper. The elevator on the 47th floor to go back down had light indicators for up and down that were just boxes without arrows. I said to myself "Hell.. Everyone knows that lights have to mean something.. There's a light on top and bottom. Who needs arrows to make you feel stupid??" Inspiration..
The purpose of this project will be, eventually, to make these little "flies" behave like little AI thingies. Look at the stationary fly and check out how the middle turns red depending on where your mouse is (relative angle). Okay. So assume that the grey line (the 100% spot so to speak) is the direction that the fly wants to move all the time. So I'll get it pretty soon so that the "fly" randomly turns about spasticly, and fluctuates its speed of movement. And then, depending on how accurate it's aim is to it's target (by percentage), a number will be added to the fly's current unstable speed every frame. So, for example, if I made the target a picture of a lightbulb, and i set it's 'love' of the target to zero, it would fly around aimlessly, and depending on the initial speed it may fly off the screen. If there is a value to 'love', the fly would still fly around aimlessly, but miraculously always find its way towards the light which it now loves to be around. Got it? No?

Here's the process broken down. (I need practice. I'm turning this into my graduation project.)
initial = 5 //How fast this fly would move all the time if there were no other factors (distance in pixels)
love = 5 //How much this fly loves light (distance in pixels)
buffer = 50 //umm.. the lack of accuracy needed to make some sparks

An Example: So let's take a single frame. The first step is to pick a tiny random number (ex: 1-10) to add or subtract to the current angle, which could be one more than zero this time for the sake of simplicity. So if our random number turned out to be 4. 10/2 is 5 to split the number evenly to right and left. so 4-5 is -1. And you all know 1-1 = 0 duh
Alright! Now we're pointing towards 0! Exciting...
So then a lot of trigonometry comes in (blah blah blah) and we figure out the angle of the target relative to [zero]. Let's assume that [zero] points right like on a protractor. So if our target (the mouse) is directly 45º from zero (meaning counter-clockwise) we get a percentage value of 50%. Why?
Buffer is set to take up 50% of the polar plane. So that means that 0% starts at 90º.. Following yet? [Zero] is the hot spot; it's 100%. Right. Blah. 90º = 0%, 0º = 100% so that must mean that 45º = 50% right? RIGHT!?
So finally.. if the love is equal to 5, and the percentage ends up at 50, we just take 50% of 5, meaning 2.5 and add that value to the initial speed making a whopping... 7.5 pixels.

So these flies do this boring kind of thing over and over and over about twelve times every second. Fun eh?

laziness might be added later for realism. If the fly is over it's target, it might just stay there for a few seconds or more, and then fly around a bit more.. and then sit some more...That is unless you wave you're mouse around at it! Shoo fly!

Shine and shine.

[This message has been edited by Bmud (edited 07-28-2002).]

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

IP logged posted posted 07-29-2002 14:22 Edit Quote

can you swat them?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 07-30-2002 00:58 Edit Quote

;_;

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

IP logged posted posted 07-30-2002 15:24 Edit Quote

ok, what's that?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 07-31-2002 21:43 Edit Quote

;_; = teary face. Why on earth would you want to swat them? These little AIs aren't souly for acting like flies. They're going to be.. sort of.. multi-purpose eye-candy building blocks.

Shine and shine.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 08-01-2002 12:43 Edit Quote

btw, why are you publishing it as exe and not as swf somewhere on the web?

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

IP logged posted posted 08-01-2002 15:11 Edit Quote

Oooo.... how about when you swat them, their little souls go up to heaven..?




Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 08-03-2002 09:33 Edit Quote

because.. I'm lazy. I don't want to put it on a page. I want you to be able to run the program as a program, not a webpage. I would send you to a .swf, but then the image would get messed up.

Shine and shine.

[edit] petskull.. no. They're just called flies because they have about the same intelligence and motivations/aspirations being.. fly around aimlessly, land, poop, fly, land, poop, fly land poop... etc.. die[/edit]

[This message has been edited by Bmud (edited 08-03-2002).]

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 08-03-2002 09:37 Edit Quote

By the way, I'm having hell trying to make a dynamic scrollbar to change settings w/o typing in numbers. Also, school started monday. I'll be on this project for a loooong time.

Shine and shine.

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 05-01-2003 05:32 Edit Quote

You won't believe it. It's been over one year and an estimated 2-3 months since i started, and I finally finished. Graduation projects were due this week. I nearly forgot that this is where I got started. My log only goes back as far as july 2002. Glad I found this post. Only problem these days is that my server is down. grumble, I'm sending you all an email. =) some temporary hosting would be nice.

Shine and shine. :: [Cell=992] :: [See my team's 30 second animation!! ]

[This message has been edited by Bmud (edited 05-01-2003).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu