PDA

View Full Version : collision detection



luksy
July 12th, 2002, 07:31 PM
Ok...look at the footer below, you'll see a circle around your head. That's your head. If you hold mouse button the MC plays. NOW...if the field vision (green thing) touches your head WHILE holding mouse button...it sends you to frame 2 or choose your own.

Complicated?

luksy
July 13th, 2002, 12:43 PM
i didn't knew if it was THAT complicated! :)

Iammontoya
July 13th, 2002, 11:19 PM
is there a question here? Are you asking how to make that happen?

luksy
July 14th, 2002, 08:57 AM
Yes i am asking how to make that happen. :))

When that green thing touches you while you're holding the mouse button, it sends you to other frame...how to make that?

Thanks!

Iammontoya
July 14th, 2002, 09:22 AM
hmm.. well.. without your fla, I cannot tell you specifics, but it would be something like...

you have to check for value of red bar while doing on press..

on(press){

if (redbar._height<100){

if(redbar.hittest(greenthing)){

trace("you were spotted");
}

}


or something like that.

good luck!

luksy
July 15th, 2002, 04:52 PM
It doesn't work but you got it wrong so here's the fla

www.geocities.com/luksifoxhr/theCheater.zip

luksy
July 15th, 2002, 04:55 PM
wrong link!
i'll try to attach the file...no it is too big! (140kb)
so i'll send it to your email
(check your email)

luksy
July 15th, 2002, 04:57 PM
nono...try again!

http://www.geocities.com/luksifoxhr/theCheater.zip

it should work now...

copy the url into the text box of your explorer (like you don't know that)