This content has been marked as final. Show 5 replies
use the attach code option to display code. otherwise, you risk your code being mangled by this forum (like your code).
Sorry about the code....
I tried your version, but my ghosts still don't hit themselves. I attached the code this time. I must have got another glitch in there, because it really should work. Can you please have a look for me what I have done wrong. Sorry, but I'm really desperate.
sometimes, it depends where you insert the codes in the frames, usually at start of timeline, even in a movie clip...
I have all my code on a layer actions on the first frame. I think, there is something wrong with my class file, but I dont know where?
your Ghost instances aren't movieclips so it doesn't make sense to execute a hitTest using them.
if getMc() returns a movieclip, you can use ghostArray[j].getMc() and ghostArray .getMc() in your hitTest().