[SOLVED] Images do not disappear correctly when using common events

Hello! I've been using this tutorial to make a system where there are two quick timed events at the same time. Its designed this way because I want it to be a two-player game using just one device. For this, I made two common events that are triggered by the same switch. When it's on, they both appear at the same time, and I can interact with them correctly. The problem comes when the qte2 completes 3 sequences, all the images disappear (as they should) except for the QTE1 cursor. This is my first time working with more "complex" events, and I'm sure I'm doing something wrong!
Spoiler: in game example
1742057745884.png
1742057815694.png
1742057915946.png
Spoiler: quick timed event 2 page
1742058139599.png
1742058250347.png
1742058285757.png
1742058317694.png

Spoiler: quick timed event 1 page
1742058603649.png
1742058692788.png
1742058740435.png
1742058766940.png
Spoiler: extra
1742058966083.png

Thats it! I hope this has a solution
I'd guess the problem is that the first QTE event manages to advance the loop a tick and draw the pointer again after the second one erases it but before the switch to run the event gets turned off. You could try making is so image 3 being erased is the last thing to happen in QTE2, and image 6 being erased is the last thing to happen in QTE1; that might fix the timing issues, not sure. Otherwise you could find somewhere else to force images 3 and 6 to be erased after the QTE has finished.
I'd guess the problem is that the first QTE event manages to advance the loop a tick and draw the pointer again after the second one erases it but before the switch to run the event gets turned off. You could try making is so image 3 being erased is the last thing to happen in QTE2, and image 6 being erased is the last thing to happen in QTE1; that might fix the timing issues, not sure. Otherwise you could find somewhere else to force images 3 and 6 to be erased after the QTE has finished.
Thank you so much for your answer! i was able to get it working and even clean unnecessary parts of the event!!

If someone stumbles with the same problem, what I did was turn on a switch when the variable reaches the required value, this switch triggers a common event which deletes all the photos independently of the other event. Its important to get this conditional branch out of the loop.

Spoiler: solution
1742110269641.png
1742110331066.png
1742110368565.png
This thread is closed due to being reported as closed. If you need this reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-images-do-not-disappear-correctly-when-using-common-events.176273/