View Full Version : MovieClip Help!
omega10mg
01-30-2003, 07:30 PM
how to do this:
when my
MC "plane"
crash into
MC "wall"
i want to goto frame 120. okey?
so... how do i make that?
CyanBlue
01-30-2003, 07:51 PM
Howdy... :)
Please look up the hitTest() function to do that...
omega10mg
01-30-2003, 08:00 PM
Originally posted by CyanBlue
Howdy... :)
Please look up the hitTest() function to do that...
i've looked at that.. but i dont really understand it...
hum.. could anyone explay how i should use hitTest() to do this?
omega10mg
01-30-2003, 08:54 PM
whats wrong here?
nothing happens...
onClipEvent (enterFrame) {
if (this.hitTest(_root.bg)) {
gotoAndPlay("Scene 2", 1);
}
CyanBlue
01-31-2003, 01:29 AM
Howdy... :)
Maybe this file will help you understand how hitTest works... I just made it in FMX with F5 syntax...
See if this file helps you and let me know...
Also, you might want to avoid using 'SCENE' in Flash... Scene is the EVIL residing inside of the Flash... Seriously... Avoid using it at all cost...
:)
CyanBlue
01-31-2003, 02:02 AM
Geez... I guess I am getting older... I said I am attaching the file and I forgot to do it... Here you go...
omega10mg
01-31-2003, 09:14 AM
thanx m8!
I managed to make a working one my self last night.. but, this is a little diffrent, what does _level0 mean?
i made my script like this;
onClipEvent (enterFrame) {
if (this.hitTest(_root.craft)) {
tellTarget ("_root.craft") {
gotoAndPlay(20);
}
}
}
linckx
01-31-2003, 09:44 AM
everything in flash is built up in levels.
_level 0 is the lowest one, and so you can build up things that will always be on top :)
it's the same principle of loadmovie, or swapdepths (if you want to know more, there are some nice tut's here)
robin
omega10mg
01-31-2003, 09:58 AM
thanx all!
well i have one last question..
how do i make a MC follow another MC, but like 2 pixels behind it?
:)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.