Convert tile edge resetting to use frame number.