Character unable to move!

Essentially, I'm new to RPGMaker as a whole (just bought MV) and have tried to make a custom menu based off of the official tutorial one. For some reason, though, the character won't move at all. He won't turn, and I've checked all the events and common events I have already. Below is the complete code for the journal I was making + every event I have on the map. The journal (the first 5 pictures) is a Parallel thing, that only activates when Switch 0001 is turned on by the "New Menu!" event. I have utterly no clue how to fix it, and each time I do something else goes wrong.
For reference, I am not using any plugins currently. I also have not defined the "Glossary" scene (I don't know how), so if that's the issue I'll need to know how to fix it-
Thank you, anyone who answers! ^^

You don't need the loop, and you might have an infinite loop problem. Take the two if statements out of the loop and get rid of it.
You don't need the loop, and you might have an infinite loop problem. Take the two if statements out of the loop and get rid of it.
I feel silly for asking, but could you specify which two if statements? It's late and I am not functioning properly.
The two if statements inside the loop? The if button left is pressed down and if button right is pressed down
The two if statements inside the loop? The if button left is pressed down and if button right is pressed down
There are multiple pictures of the code, @AquaEcho. There's like 14 if statements.

For some reason, though, the character won't move at all.
@Aetherialis, whenever I have troubles with moving characters, I always assume that I programmed their movement routes incorrectly. At the beginning of your code, you set the movement route of the player to nothing that repeats indefinitely. This causes them never to move again unless you reset their movement route.

And I notice on picture 5 that you do reset their movement route to wait 1 frame, and after they're done waiting one frame, they should move again. But for some reason the program isn't catching this change. I notice you break the loop in the if statement before the player's movement is reset. Maybe placing the "Set Movement Route: Wait 1 Frame" code outside of the loop after "Repeat Above" would fix your issue?
Alright. I've implemented the changes and...Aqua's advice did not work - removing both the button-related "if statements" made it so I could not navigate my custom menu.
As for the movement, I probably should have been more clear, but I'm unable to move at ALL - as in, before opening the journal and after. It's not a passability issue as I do not turn, and all my other autorun events have switch A turned on after they're done - as the images show.
There are multiple pictures of the code, @AquaEcho. There's like 14 if statements.


@Aetherialis, whenever I have troubles with moving characters, I always assume that I programmed their movement routes incorrectly. At the beginning of your code, you set the movement route of the player to nothing that repeats indefinitely. This causes them never to move again unless you reset their movement route.

And I notice on picture 5 that you do reset their movement route to wait 1 frame, and after they're done waiting one frame, they should move again. But for some reason the program isn't catching this change. I notice you break the loop in the if statement before the player's movement is reset. Maybe placing the "Set Movement Route: Wait 1 Frame" code outside of the loop after "Repeat Above" would fix your issue?

EDIT: After swapping the menu-replacer event (Image 6) to "Parallel" instead of "Autorun", I was able to move the character around BEFORE I opened the menu. After opening the menu, my character freezes in place still and is unable to move. I copied all the code to a blank project in order to see what exactly is up with it.
Ok, my bad, I didn't realize you were following this tutorial.

The freezing player thing is intentional, you don't want the player moving when you're trying to navigate the menu.
Ok, my bad, I didn't realize you were following this tutorial.

The freezing player thing is intentional, you don't want the player moving when you're trying to navigate the menu.
Okay, but I doubt that freezing the player when the menu is closed is intentional.
Okay, but I doubt that freezing the player when the menu is closed is intentional.
Then something is wrong with where you're closing the loop or where you set player movement
Then something is wrong with where you're closing the loop or where you set player movement
Could you be more specific - like, pointing out where I've gone wrong? I essentially just copied the tutorial 1-1, and I have no real clue what I'm doing in terms of coding. I've changed the code in the imgurr link a little bit, adding the end of the player movement freezing AFTER breaking the loop, but everything else should be accurate.
Ah, I think I spotted the problem. The official tutorial makes the player stop moving while in the menu by setting the player move route to "wait 5 frames" once per menu loop iteration. So when you exit the menu loop the player finishes the move route of waiting 5 frames (since 60 frames equal 1 second that is barely noticeable) and then the player can move again.
You however have the wait command outside the move route where it is not fulfilling this intended purpose. And you have the repeat flag checked in the player move route.
Once you set a move route it gets executed until it is finished or a new one is set. If the "wait for completion" flag is not set, this will happen independently of the event that set the route.
Since you don't set a new move route and the current move route will run forever thanks to the repeat flag, you are still setting the player move route to nothig at every possible opportunity even after you exit the menu loop. Hence you cannot move even after exiting the menu.
Alright, I'm not going to lie. I tried following the advice of putting the move route in the loop, but it leads to a few different problems that I'm unsure about fixing. The first problem is: Putting the movement route down w/o repeating or waiting for completion leads to the player being able to move with the menu open. The second is: Putting movement route on repeating + adding a short wait command in the movement route, causes me to be unable to move after closing the menu. The third: Putting movement route on "Waiting for completion" ALSO causes the player to be able to move with the menu open.
All three also have problems with the menu needing many button presses to open.
Ah, I think I spotted the problem. The official tutorial makes the player stop moving while in the menu by setting the player move route to "wait 5 frames" once per menu loop iteration. So when you exit the menu loop the player finishes the move route of waiting 5 frames (since 60 frames equal 1 second that is barely noticeable) and then the player can move again.
You however have the wait command outside the move route where it is not fulfilling this intended purpose. And you have the repeat flag checked in the player move route.
Once you set a move route it gets executed until it is finished or a new one is set. If the "wait for completion" flag is not set, this will happen independently of the event that set the route.
Since you don't set a new move route and the current move route will run forever thanks to the repeat flag, you are still setting the player move route to nothig at every possible opportunity even after you exit the menu loop. Hence you cannot move even after exiting the menu.
Ah, sorry for being unclear. The tutorial uses set move route of the player to wait 5 frames without either the wait for completion or repeat flags. The stuff I said about those was just to explain what is going on.
Putting the move route on repeat has the same general problem whether you set it to empty or to wait: the player will still be unable to move even after exiting the menu, because even when your menu event is finished executing, the move route will continue.
If you set the wait for completion flag, well now your menu event is alternating between immobilizing the player character (but not accepting input) and accepting input (but not immobilizing the player character).
Ah, sorry for being unclear. The tutorial uses set move route of the player to wait 5 frames without either the wait for completion or repeat flags. The stuff I said about those was just to explain what is going on.
Putting the move route on repeat has the same general problem whether you set it to empty or to wait: the player will still be unable to move even after exiting the menu, because even when your menu event is finished executing, the move route will continue.
If you set the wait for completion flag, well now your menu event is alternating between immobilizing the player character (but not accepting input) and accepting input (but not immobilizing the player character).
Thank you for the clarification! Are you saying that I should leave the move route as completely blank, then?
No, put wait 5 frames into the move route but leave all the boxes empty (do not check repeat or wait for completion). Just like ist is in the tutorial.
No, put wait 5 frames into the move route but leave all the boxes empty (do not check repeat or wait for completion). Just like ist is in the tutorial.
I've done that already, but it still results in the player moving with the menu open.
I'll try a different tutorial or something

EDIT: I have mostly fixed the problem. By increasing the button-press waits to 5 frames, and the player wait to 15 frames, the player doesn't move while the menu is open and moves smoothly when it is closed. Now the only issue I have is the player freezing after selecting "Don't Quit", but that's probably solved by removing that option...thank you all, though! ^^

Original thread: https://forums.rpgmakerweb.com/threads/character-unable-to-move.165755/