Skip to main content
Participant
January 3, 2007
Question

pretty please someone help! flash mx hitTest

  • January 3, 2007
  • 2 replies
  • 296 views
Hi everyone!
I am getting exremly stressed with my uni project. i am making a simple game in flash mx. I am stuck trying to detect when a movie clip 'bad guy' comes into contact with you as the main player and therefore the number of lives should decrease by one and the player return to it's starting position. I have tried a number of tutorials but none of been helpful. I will be extremly greatful if any one can make any suggestions, believe me anything will be helpful at the mo! If you need any additonal info let me no.

Michelle
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
January 4, 2007
how are you trying to get the player to return to the start? is there a timeline to direct or are you coding for the player's _x,_y properties?
kglad
Community Expert
Community Expert
January 3, 2007
you are probably using some kind of loop to make on your bad guy and main player move. in that loop use a hitTest() whenever either's _x,_y properties change.
maf_00Author
Participant
January 4, 2007
Thanks for your reply. My bad guys are on a set path, I have figured out how to create the hit test however instead of one life being deducted when a collision takes place the lives continue to go down as i can't get the player to return to its strating position.

michelle