Can't stop looping Help me

Spoiler
[IMG]http://imageshack.com/a/img908/676/JTCDAP.jpg[/IMG]

[IMG]http://imageshack.com/a/img661/4703/uiBoip.jpg[/IMG]
Guys I know this is a coomon problem and solutions are everywhere but It just does not work I ve been dealing with this for hours. Can anyone help me bout what did I do wrong up there?
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.


You posted in VX support, but the screenshots and your profile show that you're using VX Ace - that are two different programs.


About your problem:


You need to split that event and use several common events called from it.


Conditional branch: Button being pressed is only checked in that specific frame where the conditional branch is executed. This you have worsened by making the branches conditional on each other and placing waits inside them.


Which basically means that each and every button is only checked in one specific of nine frames and being ignored at all other times...


You need one common event on parallel process (those loop automatically) which checks for all buttons and as soon as one is pressed, it stores a code number for the button into a variable and ends itself.


And the other events trigger that wait for a button and check the value in the return variable to make the action when its over.


And don't use else-branches, make the checks on the same logic level - it'll make handling a lot easier.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.

You posted in VX support, but the screenshots and your profile show that you're using VX Ace - that are two different programs.

About your problem:

You need to split that event and use several common events called from it.

Conditional branch: Button being pressed is only checked in that specific frame where the conditional branch is executed. This you have worsened by making the branches conditional on each other and placing waits inside them.

Which basically means that each and every button is only checked in one specific of nine frames and being ignored at all other times...

You need one common event on parallel process (those loop automatically) which checks for all buttons and as soon as one is pressed, it stores a code number for the button into a variable and ends itself.

And the other events trigger that wait for a button and check the value in the return variable to make the action when its over.

And don't use else-branches, make the checks on the same logic level - it'll make handling a lot easier.
Thank you for the reply

Sorry I read it all a few times but just couldn't understand what to do with variables yet.

I'm trying to control the bate actually

 I tried a few more but didn't work out just go more basic

this down simple set is not working as well I can't stop the loop

Spoiler
[IMG]http://imageshack.com/a/img911/1761/mwRMER.png[/IMG]
in here it is not working becouse of Conditional Branch?
No, the problem why you can't stop the loop is because you pressed the button at the wrong microsecond.


Yes, Microsecond - that's how long the conditional branch checks for the button press.


But just for clarification:


You did press the button :X, and NOT the key X at your keyboard, yes?


The buttons are not the same as the keys of your keyboard - press F1 during game to configure your keyboard if you don't know which key is the button :X
Oh right Thank you very much
Solved:

Spoiler
[IMG]http://imageshack.com/a/img661/1097/ZnZbsQ.jpg[/IMG]

Original thread: https://forums.rpgmakerweb.com/threads/cant-stop-looping-help-me.41716/