Diagonal, sideways and upwards movement script.