How to add text or options while a PNG animation is playing, and have the animation disappear when an option is selected?

Hi guys, I urgently need your help because I've been stuck on this part for a long time and I can't progress in my game. My problem is that I can't display text or options while a looping PNG animation is running, and I need the animation to stop when an option is selected. I've seen this in many games, but I haven't been able to figure out how to do it. I really hope you can help me.
Captura de pantalla 2026-01-21 165534.png
Captura de pantalla 2026-01-21 170948.png
Turning on the switch in your event activates page 2, meaning page 1 doesn't run anymore.

The solution is to simply make the looping picture commands a separate, parallel event with a switch condition. Turn on this switch when talking to the npc, show your choice and whatever, turn the switch off at the end of the choice, done.
Yeah do what sg said. I was about to explain how to break your loop, but honestly. that is the more beginner friendly.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-text-or-options-while-a-png-animation-is-playing-and-have-the-animation-disappear-when-an-option-is-selected.182083/