i have this game. Much like madness where he shoots a bullet blah blah blah. anyways he shoots the bullet. the bullet flies hits him and dissapears. what i want is it to hit himand play a frame in the enemys movie clip. so i triedusing hit test. it didnt work. any ideas
i am doing a game that uses the same concept “hero” or “thing” shots “bullet” then “bullet” hits “enemy” then “enemy” goes to and play something…anyways u get the idea…here’s the code i am using in my game i had to remove some code lines so i hope it helps u…sorry if it doesnt…
onClipEvent (enterFrame) {
if (hitTest(_root.“enemy”)==true) {
_root.“enemy”.gotoAndPlay( 2 );
}
like i told u i am not sure if this will work for u cuse i had to erase some lines and i should add i didnt write the code for my game…
by the way the (2) is the frame where the dead animation starts for the enemy after been hit by the bullet. and u dont have to change ur hittest if u have one that works already.
I tried adding it. I had somthing similar to that except without add the true poart. is the true part always needed?