Programming while bored

Firearms-related electronica including printable targets, ballistics tables, links to reloading software and other firearms related software.
Post Reply
User avatar
Chasbo00
Sharp Shooter
Sharp Shooter
Posts: 1819
Joined: Mon, 08 Mar 2010 19:34:29
Location: Northern VA

Programming while bored

Post by Chasbo00 »

Try to place your cursor on his head...

http://www.selfcontrolfreak.com/slaan.html

So, what language was used to code this?
Competition is one of the "great levelers" of ego.
Unkn0wN
Sharp Shooter
Sharp Shooter
Posts: 641
Joined: Thu, 31 Dec 2009 08:30:03
Location: Hampton

Re: Programming while bored

Post by Unkn0wN »

This is done in Flash. This could be done really simple. a few short clips and then just a basic script to tell it to place the cursor at a random spot when it goes over the head area.

Something like:

Flash plays normal clip of him sitting there looking around, when the cursor goes over the area (predefined) of the head, flash plays one of the clips of him swatting and executes the script to relocate the cursor.

Now, what language is the script using? Probably JavaScript. When scripting in flash, you can use different languages. It recognizes Javascript, VBScript and I believe JScript.
'You picked a fight with a warlock you little worm' - Charlie Sheen
User avatar
Chasbo00
Sharp Shooter
Sharp Shooter
Posts: 1819
Joined: Mon, 08 Mar 2010 19:34:29
Location: Northern VA

Re: Programming while bored

Post by Chasbo00 »

Thanks UnknOwN.
Competition is one of the "great levelers" of ego.
User avatar
Jakeiscrazy
VGOF Silver Supporter
VGOF Silver Supporter
Posts: 3519
Joined: Thu, 30 Jul 2009 10:06:02
Location: Chesterfield, VA

Re: Programming while bored

Post by Jakeiscrazy »

Cool!
“Socialism is a philosophy of failure, the creed of ignorance, and the gospel of envy, its inherent virtue is the equal sharing of misery.”
-Winston Churchill
User avatar
frankD
Sharp Shooter
Sharp Shooter
Posts: 184
Joined: Sun, 28 Nov 2010 18:50:57
Location: Lynchburg, VA

Re: Programming while bored

Post by frankD »

It doesn't like the thermostat either.
Image
Post Reply

Return to “Geeks with Guns”