PDA

View Full Version : Electricity in flash



eilsoe
November 20th, 2002, 08:18 PM
An attempt at making semi-electricity in MX... :)

onother one of my "this goes to show what simple coding in MX can do" kinda things.. =)

Hope ya'll like it.. (even a little).. :P


LINK! (www.avalon-rev.dk/junk/electric/electric2.html)




(remember to turn ON the power) hehe...

:P:P:P


UPDATE!!!: fla available here: electric fla (http://www.avalon-rev.dk/electric/electric2.fla)

eilsoe
November 20th, 2002, 08:36 PM
You bet! :P

I spent half the time being confused... heh...

eilsoe
November 20th, 2002, 08:40 PM
Underdog?? Shoeshineboy????

a'whatcha??

:P:P

Jubba
November 20th, 2002, 08:45 PM
Damn Eilsoe, never knew you could code... always thought you were a doodler...

eilsoe
November 20th, 2002, 08:48 PM
Doodler!?? :P:P

hehe, true, a little...


Phil: I'm 19! 20 come late january =) I just have a childs mind I guess.. *lol*


And as for using any books or anything. No. I stick whatever I got from tutorials and stuff it in my brain, this was all coded right out of head.

That's why I'm proud of it =)

lostinbeta
November 20th, 2002, 09:00 PM
That is excellent Eilsoe, you need to work on your Math thing though... we talked about this earlier... tisk tisk :P

eilsoe
November 20th, 2002, 09:01 PM
Yes, and I DID use Math.floor actually, but it didn't werk :-\

As soon as I smacked "int" in, it werked fine... oddly enough...

on the bottom ones that is... the break points worked with floor...

eilsoe
November 20th, 2002, 09:05 PM
hehe absolutely :P


Seriously though, I AM, and I (probably) always WILL be, the lazy coder! :P:P


This shiznit makes sense to me, when I look at pom's code, or h88's for that matter, I just start whimpering =)

lostinbeta
November 20th, 2002, 09:12 PM
Hey Eilsoe, did it just not work, or did you get an error? If it was an error, you probably had a miscount in parenthesis.

Math.floor, Math.round, or Math.ceil can all replace int.

Why they deprecated int for something as long as those I will never be able to figure out :-\

Phil: I highly doubt I could ever be a mentor...lol.

eilsoe
November 20th, 2002, 09:15 PM
Actually, there's a difference in ceil, floor and round...

I guess you know, but i'll run'em over anyways:


ceil: rounds UP to nearest whole.

floor: rounds DOWN to nearest whole.

round: just rounds to nearest whole.


I dunno what "int" does actually... i know it does the same as ONE of the above, my guess would be "round"...

agree?

lostinbeta
November 20th, 2002, 09:18 PM
Yes, you are right about the differences, int is the same as Math.round, but floor and ceil are used more often that round for some reason so I got used to using them...lol.

eilsoe
November 20th, 2002, 09:18 PM
Has anyone noticed the glow effect I put in too??


Or the info button?

=) Just curious...

lostinbeta
November 20th, 2002, 09:18 PM
yep :)

Way Shway :)

eilsoe
November 21st, 2002, 02:43 AM
Lost: Nope, no errors... I can handle errors :P This just didn't respond at all...

lostinbeta
November 21st, 2002, 02:45 AM
Did you try Math.round instead of Math.floor????

eilsoe
November 21st, 2002, 04:37 AM
No I didn't... :-\

I'll check it as soon as I get home.. I forgot to upload the fla to my server, so I can't check it here at school... ~doh.

:P:P:P

upuaut
November 21st, 2002, 04:53 AM
sweet effect Worm boy.. you make me jelous.

pom
November 21st, 2002, 06:12 AM
Very nice, Eilsoe :) I'm impressed, really.











Even though I would do it with 3 times less lines, Muhahahaaaa :evil: :superEvil:

h88
November 21st, 2002, 06:20 AM
Hey, cool one, really liked it!

Guig0
November 21st, 2002, 09:41 AM
Man, you stunned me! This is GREAT! LOVEIT!!!


=)

eilsoe
November 21st, 2002, 09:48 AM
Haha, "stunned" :P

good one =)


Yes pom, u would :) I know! :P I'm the lazy coder here...

*snicker*

I'm happy as long as it works :)

andr.in
November 21st, 2002, 09:48 AM
FFS when I see such a script and effect then I understand that I'm just a little nooby rookie! doh'
Great work maan!
btw is werk for young people like woot and 1337 ? :P lol

eilsoe
November 21st, 2002, 03:22 PM
FFS??


Anyhoo, the fla's available in post 1 of this thread...

For those who wan't to take a peek :)

lostinbeta
November 21st, 2002, 03:23 PM
I want to :P


What is FFS??????

andr.in
November 21st, 2002, 03:24 PM
FFS = For Fuc|< Sake :P

lostinbeta
November 21st, 2002, 03:26 PM
That makes no sense though :-\

andr.in
November 21st, 2002, 03:26 PM
no it doesn't but I like it! :P lol

lostinbeta
November 21st, 2002, 03:31 PM
It makes as much sense as me saying "My dog walks backwards on winter days with false moons"

eilsoe
November 21st, 2002, 03:33 PM
"God bless mustard Jar-bells"









.................his fault *points to Lost*

andr.in
November 21st, 2002, 03:34 PM
LMAO! you got that right! LOL :P:P
let's see if it's better if I replace FFS with this.

My dog walks backwards on winter days with false moons when I see such a script and effect then I understand that I'm just a little nooby rookie! doh' :P

lostinbeta
November 21st, 2002, 03:36 PM
LOL, that actually sorta makes more sense that FFS

:P

eilsoe
November 21st, 2002, 03:36 PM
MDWBOWDWFM!!! :o :o :o



geez.. that'll be hard to remember :smirk:

lostinbeta
November 21st, 2002, 03:37 PM
TWBHTRE

(That would be hard to remember Eilsoe)... wow, writing shortly on the internet better not become that popular otherwise it will be a whole new language :-\

andr.in
November 21st, 2002, 03:38 PM
lol
ok it's movie time. I'm not gonna be around a while :smirk: http://www.kirupa.com/forums/smileys_files/popblood.gif

eilsoe
November 21st, 2002, 03:40 PM
YIWL...ICEIWIWBLITH.. :-\

PTLHDNITKLFUH... :P

lostinbeta
November 21st, 2002, 03:42 PM
LOL

STLTEOIWKYB!!!!!!!!!!!!!!! :evil:

LOL

lostinbeta
November 21st, 2002, 03:45 PM
:::hunches head down and wimpers:::

eilsoe
November 21st, 2002, 03:46 PM
*IAEH, IAEH, IAEH....



*"I am evil HO-mer"


:P:P:P



Bwahahaaa... :evil:

eilsoe
November 25th, 2002, 04:04 PM
:::bump:::


any other comments? :)

Guig0
November 25th, 2002, 04:15 PM
Iīve said itīs great already!

You want me to say that I could do better? Well, I canīt. Ok!:*(
So stop making me feel inferior ok? OK?:evil:

Damn you for your knolege:*(


=)

eilsoe
November 25th, 2002, 04:20 PM
Knowledge :P

Nonono, check the fla man, I cheated everywhere! :P


I used the basic of the most basic code here...

Guig0
November 25th, 2002, 04:37 PM
stop making me fell inferior!



Just kiding man. :)

I would love to see this code rewrited by Ilyas...



=)

eilsoe
November 25th, 2002, 05:32 PM
Sorry bro :x


Yeah I'd like to see Pom rewrite this too :)

Guig0
November 26th, 2002, 06:40 AM
Originally posted by eilsoe
Knowledge :P

Nonono, check the fla man, I cheated everywhere! :P


I used the basic of the most basic code here...

Donīt do this. If you lack of programing skills than it was greater deed than I thought it was... As long it works itīs fine for me.


Greate job dude!


=)

eilsoe
November 26th, 2002, 07:40 AM
Why spank you very much :P

Guig0
November 26th, 2002, 09:23 AM
plz, not with that big troute, or bicicle man thing!:P :P :P


You deserve:)


=)