Problem with Parallel Process and autorun.

Hello, I'm currently makin a section of my game that has an "Subway surfer-like" stage, I'm using a Parallel process to make the player move down the map. But i cant stop him in any way, I've tried erasing the event, changing between maps but my PJ keeps running down as if his life depends on it. Also, I cant use atorun to move him becaus when i enter the stage if the autorun is enabled the screen turns pitch black.

Please help me. ;-;
Hey there, welcome!

We'll need to see your events before we can be much help. Will you please screencap your events,(making sure to get the entire event window, including both the event commands and all the conditions/settings on the left) and post it here?
if the autorun is enabled the screen turns pitch black.
That's not regular behavior, you should check what is causing the screen to turn black. Are you doing fade out somewhere without a fade in? Are you using tint screen command?

Parallel process to make the player move down the map
Parallel process will continue to run. It gets to the end, and then starts again from the beginning. So at the end of your parallel process, you can turn ON a self switch. Then add a new page (a dummy page) to this event and checkmark the Self Switch.
That's not regular behavior, you should check what is causing the screen to turn black. Are you doing fade out somewhere without a fade in? Are you using tint screen command?


Parallel process will continue to run. It gets to the end, and then starts again from the beginning. So at the end of your parallel process, you can turn ON a self switch. Then add a new page (a dummy page) to this event and checkmark the Self Switch.
This is the event I'm using, when I use autorun the zone won't load
Hey there, welcome!

We'll need to see your events before we can be much help. Will you please screencap your events,(making sure to get the entire event window, including both the event commands and all the conditions/settings on the left) and post it here?
Sure, Here it is what i'm using
So again, parallel process will continue playing over and over, so your player will continue moving down over and over.

I suggest you count how many Move Downs you need and then when moving down is done, you can turn on a self switch to finish the event. Here is a quick example:
Page 1:
1687798037381.png


It's also in your best interested to do some tutorials about switches, variables, and general eventing if you haven't done that yet.
Page 2:
1687798056513.png
I've set up events that match yours in a blank project, and with both of them set to parallel process, they work just like you want--the character moves down unless Left/Right is pressed. What I did to stop the character moving at the end is added a goal, basically, which turns on a switch that turns off the parallel events and restores regular movement.

My test map looks like this, with the player starting at the top and the goal at the bottom. The two events off in the water are the parallel processes.
Spoiler: Test Map Layout
1_TestMap.png


My parallel process events look like this:
Spoiler: Parallel Process Events
2_PlayerMoveForward1.png

3_PlayerMoveForward2.png


4_PlayerMoveSide1.png

5_PlayerMoveSide2.png

My "goal" event looks like this, and this is what stops the "Subway Surfing" style movement and lets you move normally again:
Spoiler: Goal Event
6_Goal1.png

7_Goal2.png

So essentially what happens is:
The player enters the map and immediately starts moving downward.
When the player presses Left or Right, they move left or right, while continuing downward.
When they reach the goal, the "Reached Goal" switch is turned on, which stops the parallel processes from running and restores normal movement.

I admit that this does not answer your question about why the screen is turning black with an autorunning event, but it should do the job you need it to! I tried setting the Move Down event to autorun instead of parallel, and absolutely nothing happened--the character didn't move, no buttons worked. Which makes sense, because when an autorun is running, you can't do anything. It could possibly be related to the event that transfers you onto the map, if you have (as Testosterone suggested) a fade out/fade in that isn't being completed by the time the autorun realizes it should start? But that's a wild guess on my part.
I've set up events that match yours in a blank project, and with both of them set to parallel process, they work just like you want--the character moves down unless Left/Right is pressed. What I did to stop the character moving at the end is added a goal, basically, which turns on a switch that turns off the parallel events and restores regular movement.

My test map looks like this, with the player starting at the top and the goal at the bottom. The two events off in the water are the parallel processes.
Spoiler: Test Map Layout


My parallel process events look like this:

My "goal" event looks like this, and this is what stops the "Subway Surfing" style movement and lets you move normally again:

So essentially what happens is:
The player enters the map and immediately starts moving downward.
When the player presses Left or Right, they move left or right, while continuing downward.
When they reach the goal, the "Reached Goal" switch is turned on, which stops the parallel processes from running and restores normal movement.

I admit that this does not answer your question about why the screen is turning black with an autorunning event, but it should do the job you need it to! I tried setting the Move Down event to autorun instead of parallel, and absolutely nothing happened--the character didn't move, no buttons worked. Which makes sense, because when an autorun is running, you can't do anything. It could possibly be related to the event that transfers you onto the map, if you have (as Testosterone suggested) a fade out/fade in that isn't being completed by the time the autorun realizes it should start? But that's a wild guess on my part.
Worked perfectly, thanks a lot
Happy to help! Have fun!
I've set up events that match yours in a blank project, and with both of them set to parallel process, they work just like you want--the character moves down unless Left/Right is pressed. What I did to stop the character moving at the end is added a goal, basically, which turns on a switch that turns off the parallel events and restores regular movement.

My test map looks like this, with the player starting at the top and the goal at the bottom. The two events off in the water are the parallel processes.
Spoiler: Test Map Layout


My parallel process events look like this:

My "goal" event looks like this, and this is what stops the "Subway Surfing" style movement and lets you move normally again:

So essentially what happens is:
The player enters the map and immediately starts moving downward.
When the player presses Left or Right, they move left or right, while continuing downward.
When they reach the goal, the "Reached Goal" switch is turned on, which stops the parallel processes from running and restores normal movement.

I admit that this does not answer your question about why the screen is turning black with an autorunning event, but it should do the job you need it to! I tried setting the Move Down event to autorun instead of parallel, and absolutely nothing happened--the character didn't move, no buttons worked. Which makes sense, because when an autorun is running, you can't do anything. It could possibly be related to the event that transfers you onto the map, if you have (as Testosterone suggested) a fade out/fade in that isn't being completed by the time the autorun realizes it should start? But that's a wild guess on my part.
Though, the problem of @Ritterwind is solved (with your help), I'd like to point out that the solution should be enhanced. Here is why:

You have 2 parallel events for something in place which can (and should) be easily combined in only 1 event, therefore less overhead (sure, not noticeable in this case, but nice to know and for better knowledge).
Use only 1 parallel event with the following conditions:

Some pseudo code

Ruby:
If left button is pressed
> player move lower left
else if right button is pressed
> player move lower right
else
> player move down (repeat)

The rest like described is fine. You could also make another if statement in the same event for checking, if the player reached a specific location and activating stuff, therefore saving another event (the "Goal" one) but that is totally up to what is desired.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-parallel-process-and-autorun.158712/