Did you notice the missing semicolon after the line "y1 = mouse_pos.y" ?


Always learn from history, to be sure you make the same mistakes again...