Pete walks down a hallway, armed with a baseball bat. He looks into an office. And as he does, Jack appears from a door at the end of the hallway and slips around a corner.
My intention is that Pete doesn't see Jack because he (Jack) runs out of the room and around the corner in the hallway while Pete is looking into the office. Does "And as he does" make that clear?