onClipEvent(enterFrame){
if(this.hitTest(_root.blaze))
_root.floor.speed = -20;

else{
_root.floor.speed = 10;
}
}
Blaze is the MC I want the hit test to look for, Floor is the MC that will stop, because I'm using a code where the floor moves instead of the character.

The else is in there because without it, Blaze would climb onto the wall and then get stuck forever.

I have this code on five different wall clips, none of which have names. It is the exact same, copy/pasted code. Four of the five walls are copied art, also. But it only works on the first wall that I made. If I take out that wall, it only works on the second wall (etc).

I tried making them all one movie clip, also, but then because of the way they're arranged, they make everything around them a wall also.

Why can't they all have the same code? What about the code makes it work once?