Archive for VTW 
 



       VTW Forum Index -> Actionscript
computergeek67

Hit Test

To make a Hit test, you first need to make two objects, make them both Movie Clips and call them object1 and object2. Now on object1, paste this code:

Code:

onClipEvent(enterFrame){
if(this.hitTest(_root.object2)){
_root.gotoAndStop(2);
}
}



Now press Ctrl+Enter and test your flash. When object1 hits object2, it should go to frame 2.

       VTW Forum Index -> Actionscript
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum