Scrolling thingy..?

Hello! Im trying to make when my little hero reaches a high the map will jump so i can se the rest of the map… And then if he falls it would jump down … I’ve tried this kind of script

if (_y>= -100.0){

But unfortunaly it didnt work… And i wasnt suprised becouse i just tried something … But is there some script to do what i want?