patricktheking
June 3rd, 2004, 09:32 PM
K For my racing game I have movieclips inside other movie clips and I was wondering How u like aknowledge it.... Like example....
onClipEvent (enterFrame) {
if(_root.car.hitTest(_root.hotspot6)){
_root.road.easeXY(307, 315)
} else {
play();
}
}
That is the hittest for 2 moviecips onscreen...not in any other MC.... how do I do it when ones in the MC and another on the main screen.
Example... lets pretend that hotspot6 is in a moviecip "trigger". Do i edit my command like this.....
onClipEvent (enterFrame) {
if(_root.car.hitTest(_root.hotspot6.trigger)){
_root.road.easeXY(307, 315)
} else {
play();
}
}
K i know i havnt done the best job explaining wat i need but if u understand plz.. answer<!-- / message -->
onClipEvent (enterFrame) {
if(_root.car.hitTest(_root.hotspot6)){
_root.road.easeXY(307, 315)
} else {
play();
}
}
That is the hittest for 2 moviecips onscreen...not in any other MC.... how do I do it when ones in the MC and another on the main screen.
Example... lets pretend that hotspot6 is in a moviecip "trigger". Do i edit my command like this.....
onClipEvent (enterFrame) {
if(_root.car.hitTest(_root.hotspot6.trigger)){
_root.road.easeXY(307, 315)
} else {
play();
}
}
K i know i havnt done the best job explaining wat i need but if u understand plz.. answer<!-- / message -->