The actor stops it's animation while in an interaction. (solved)

So, in my project the actor does a small animation when "ok" is pressed. But it continues to do it in text and/or choice, when in that case should remain still.
The animation event is set on parallel and it's set to wait 4 frames so it doesn't get priority over the actual events.
If it's for cutscenes/talking with NPCs, can't you just turn off the switch for the parallel event during them?

For NPCs it could also work to check with 'get location info' that there's no event in front of player and use that as a conditional to start the animation with button press. Or check with $gameMessage.isBusy()if there's text box on screen.
If it's for cutscenes/talking with NPCs, can't you just turn off the switch for the parallel event during them?

For NPCs it could also work to check with 'get location info' that there's no event in front of player and use that as a conditional to start the animation with button press. Or check with $gameMessage.isBusy()if there's text box on screen.
Thank you it worked!
Also, I've already tried the switch and the location info. But the code worked the best. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/the-actor-stops-its-animation-while-in-an-interaction-solved.175477/