box is overlapping box at offset - 32, 0
(sub event)
box animation frame = box.animation frame
do action
this checks the box next to it 32 units to the left
then compares the box's current frame to the one next to it
if they are the same, then it will perform the action you want.