Having trouble with the key input for a timing challenge minigame

So the minigame in question is the one where the line moves along a bar and you have to stop it in a certain zone. Here's an example from an RM game where it's used as a battle mechanic, but the one I'm making is in the overworld, not in battle.



I'm using SHOW/MOVE PICTURE commands for this and I have no problems there with the actual movement, but the key input just won't register and I can't figure out how to fix that. Code attached, it's a bit informal because this is a test event. Any help would be appreciated!

1717184669693.png

1717184695006.png
As you didn't delete the images when the variable goes above 206 you think that the LOOP is still happening because the Picture is still animating.

There is no delay for the sum of variable 17, that is, in less than 3 seconds it would reach 100,000 if there were no exception to break the LOOP.

Para realizar os testes, inclua uma mensagem como esta dentro da condição "When Equals 4"
Code:
@> Text: \v[17]

Example:
Code:
@> Conditional Branch: Variable [0019:test input] == 4
  @> Text: \v[17]

Another thing, the Picture is taking 1 whole second to move, this is happening after the LOOP has already been broken. You can use it to cause a minimum delay, giving the player just the confirmation key.
Decrease the time to 0.0s and enable the "Wait" option:
Code:
@> Move Picture: 2, Variable [0017][0018], 100%, 0%, @0.0s, Wait

Of course you will notice that the cursor takes a while to complete, so in this case you need to add a higher value to make it more difficult for the player.
I see! You were right, decreasing the picture's move time and enabling the "Wait" option fixed the issue perfectly, thank you.

However, it does make the picture move slower, which is an issue since it's a timing based minigame. Is there a different way that I can change the speed without interfering with the key input?

I know that the picture isn't deleted, it's because I was testing out the minigame and didn't bother putting in the effort to erase it. I tested it using the line you provided above and the LOOP does break when it goes out of bounds.

@> Conditional Branch: Variable [0017:test x var] < 206
@> ...
: Else
@> Text: \v[17]
@> Break Loop
@> End Event Processing
@>
: Branch End
Increase the sum value to 2 or 3, I did the tests and in my opinion 2 is perfect for the beginner player.
I put the maximum value condition after the sum to avoid Condition within Condition, this makes it visually easier:
1717204173911.png

I don't understand much about complex events in RPG Maker, but in my opinion the "End Process" is useless in this situation since breaking the LOOP already sends the event to the end where it naturally ends.
Tried it out and I agree 2 seems to be a good speed. I was pretty stuck trying to figure this out, thank you so much for your help!
Thank you for not knowing the purpose of REACTIONs after receiving support that solved your problem.
THIS:
1717211230478.png

Original thread: https://forums.rpgmakerweb.com/threads/having-trouble-with-the-key-input-for-a-timing-challenge-minigame.169156/