def getMove(win,playerX,playerY): #Define variables. movePos = 75 moveNeg = -75 running = 1 #Run while loop constantly to update mouse\'s coordinat
You should explicitly reassign these variables when you call getMove():
playerX, playerY = getMove(win, playerX, playerY)
Hope this helps!