This content has been marked as final. Show 5 replies
I don't know whether or not I got the whole Idea, but you should check the hit test with _root.BlockHolder instead of _root.Block !
if it's doesn't solve your problem please explain it more or even send a sample file.
Block only contains a reference to the last clip attached. You can either loop through the array within your onEnterFrame or hitTest the other way round
eg/within your loop
Block.onEnterFrame = checkHit
edit/or if it doesn`t matter which clip hits Player -do as above suggested
Thanks for that,
now the score and trace do react :)
but they (the Blocks) won't gotoAndStop another frame and also won't obey a removeMovieClip in the if statement...
might the problem be in the way I distribute the Blocks?
If you want to delete each movieclip hittest you should do it in a "for" loop. so you can detect the hit test and do the corresponding visual effect .
here is a sample file: take a look ...
you have some problem with naming movieclips I think ...
you have duplicated items in your array which cause conflict
good luck and feel free to contact me if you have further problem
I was looking for my mistake for a very long time!!
Array and Counter...
The example file is great!