Kokisho Posted March 10, 2007 Share Posted March 10, 2007 I tried searching hittest and the search came up with a few results but none of them were any help. Im trying to make a flash game where your'e cliff diving and you have to avoid certain stuff on the way down. How do I make it so when the guy hits the rock he goes to a different frame. Please help. Link to comment Share on other sites More sharing options...
smiles Posted March 11, 2007 Share Posted March 11, 2007 I tried searching hittest and the search came up with a few results but none of them were any help. Im trying to make a flash game where your'e cliff diving and you have to avoid certain stuff on the way down. How do I make it so when the guy hits the rock he goes to a different frame. Please help. Make a button symbol have a shape of rock, gives it a code or use tween to move it on the screen and add a code onRelease(){ gotoAndStop(?) } Link to comment Share on other sites More sharing options...
Kokisho Posted March 11, 2007 Author Share Posted March 11, 2007 Thanks, but it doesnt work, im trying to make it so when the 'moving' movie clip, hits into the wall it jumps to another frame (the start of the game over sequence). Thanks anyways though. Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted March 13, 2007 Share Posted March 13, 2007 try this: if(guy_mc.hitTest(obstacle_mc)){ gotoAndPlay(frame);} both guy and obstacle must be movie clips.BigUp! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now