Well, there is probably an easier way, but you can just do 2 Repeat loops using array.width and array.height as the number of iterations. Use some local variables to keep track of the coordinates (i.e. x, y) In the inner loop, test if Array.At(x,y) = Player. If so, stop loop and there you go.