y = global.waterlevel if (global.watertype == 0 && instance_exists(oWater)) y += oWater.yoffset