I can't see anything wrong but here's a suggestion:

Quote:

if(my.pan <= camera.pan + 10 && my.pan >= camera.pan - 10)




You might try putting that in a while condition or using || instead of &&

Also, have you checked the bounding boxes by hitting F11 twice?

Just shots in the dark from a klutz koder.