I have used this behavior to move my object to left and forth,
but when it stops moving to go right and starts to move to left it doesn’t stop and keeps moving the left.
Should I use a boolean variable in this case like programming languages or develop provides an easier method?