How about a walkLeft variable on the object. eg assign 10 on it to walk left 10 whatever units. -10 for right whatever units, 0 = stop.
And on every tick or every 0.x seconds, move and increment 1 unit back to 0.
Change is in touch to on touched any.