Player autonomous movement/allow input even during Player movement?

Hello!

I'm trying to create a virtual pet-like game (think oldschool Tamagotchi or Digimon). It's proving to be a bit more difficult than I expected. =)

I'd like the Player to be a bit autonomous. I have YEP's Picture Common Events plugin installed and functional, with input disabled. The user will use a touch menu system to play and interact with the Player. I also want the Player to move around the screen in the meantime.

I have a Parallel event that sets a Movement Route for the Player, with Wait enabled. This event runs continuously, so that the Player is pacing back and forth across the screen. But while it's running, I'm unable to trigger the Button events. If I deselect Wait, the Player only & repeatedly does the first command in the Movement Route, which in this case is Move Left. So he moves all the way to the left of the screen and then stops, and even then I'm unable to trigger the Button events. Even if I have the Skip option checked, it still seems to lock me out of initiating other events.

Any thoughts? =)
show us the event page and the autonomous movement page of the event controlling the player

handling movement routes, especially with timing involved, is not easy and we need to see what exactly you did in a screenshot to start helping.
Of course, sorry!

1. "initialize" event:
1584636490410.png

2. "monMovement" event, which begins the Player's pacing back and forth - as it is here, it works just fine and he paces the way I want him to:
1584636540669.png

3. The common event that should trigger when I click the circle picture that is generated during the "initialize" event:
1584636593122.png

4. The parameters for the YEP Picture Common Events:
1584636648134.png



If I delete my monMovement event, then I can hit the button and generate the text box, but then, of course, my Player stops pacing. But if I turn on monMovement, my Player paces, but hitting the button doesn't generate the text box (unless I time it very specifically, and manage to catch him when he's completed his event but before he starts it again).

I tried changing monMovement by removing "Wait," but when I do that he only walks to the left until he hits the side of the map - so it essentially repeats the first command endlessly.

Thank you!
First thing, and as a general rule independent of what they do, any parallel process should always have a wait command included. The exact number of frames in that wait is depending on what it does - most parallels should be on wait(10), some can get away with more waits and for some it is better to have only one or two waitframes, but it is usually a problem (and causes a lot of lag) if there is no wait at all.

That is because the wait is actually an "skip this process for X frames" command, and in the case of parallel processes that prevents a lot of lag.

That said in your specific case I would split the movement commands.
Make six "set moveroute" commands each containing one of the six commands you give in the single moveroute command above.
And between each one of those set move commands, you add a single wait(1) for one waitframe between each command.

Test that - and try to increase to wait(2) if that is still not responsive enough - because the engine will be able to react to the mouseclick in each waitframe, so you don't have to hit the exact moment between the loop like currently.
Oh that's brilliant, thank you! Works perfectly. =)

Thank you for the advice, as well - I'm quite new at this, as I'm sure you can tell. Eager to learn, though. =)

Original thread: https://forums.rpgmakerweb.com/threads/player-autonomous-movement-allow-input-even-during-player-movement.119274/