So, do you want this movement to be at the end of patrol route (far left or far right), or just randomly? If so, you could just add a random event that stops the boss, sets the idle animation, waits a little, and then starts him again.
I wanna make the boss stop at the end of patrol route and sets the idle animation.
I did that one but as soon as the "wait" ends he goes patrolling with the "idle" animation still on.
I wanna make the boss stops at the end of the patrol route, sets "idle" and wait for X secs and then continues to patrolling using the "walk" animation instead of "idle" and vice versa.