set position of invisible entity at function start: Code:
function free_cam(){ vec_set(my.x, player.x); player = my; my.invisible = off; ...
and I recommend again, use that code as a snippet to modify your code. You have to understand what is going on inside your code, don't just 'copypaste' Orange Brat's code.