I need to move an object to right til a certain point and this object will turn automatically in reverse and move again until it hit another point and the process will repeat infinitely
Any idea ?
Well, depends on how you need to do it, many ways. Take a look on my example, that works how you want i guess.