English:
You could get the distance from the sprite and the button, then disable the button when it passes a certain threshold.
Español (lo siento, esto fue traducido del inglés):
Puede obtener la distancia desde el sprite y el botón, luego deshabilitar el botón cuando pase un cierto umbral