I made a very simple script to position the camera when it founds collision. If anyone wants to copy and use, here is the steps to make it work properly!
Use a timer or changed trigger in main character and put this script inside there:
http://www.engine001.com/script/eavN1c
You need to create a local variable named as: increment_cam
And a global variable named as: zoom_cam
zoom_cam correspond to camera distance, not the real zoom