I wanted to create a boss that only moves horizontally. He moves left and right randomly, and when he reaches certain x axis, I want him to turn back. So far, it is going ok, except that it sometimes stops at certain point of time. I don't understand what is causing it to stop or pause. I've made sure that the simulate left and right controls never collide, so I have really no idea why it happens.
The capx is below
Would really appreciate any help.