Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving cross hair

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
Hey again, I'm making a cartoon and in the movie there is a cross hair moving back and forth how do i make it when they push a button where ever that cross hair is it will shoot them there??? Not real sure Thanks for letting me bother you again! =)
 
onClipEvent (enterFrame) {
if(_root.cartoon.hitTest( _x, _y, 1 ) and Key.isDown(Key.SPACE)){
removeMovieClip ( _root.cartoon );
}
}

Add this script to your crosshair.
 
Hello Chrinaldo,

One thing I would change in your script is and by &&.
mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top