Detect a location

how to set that this mc already reach a y location (x,y)?