Common event not stopping even when off.

Hey everyone ! Im totally Desperate right now. I'm trying to make a surfing mini game in my project and i kinda have an issue. So the thing is that the minigame works as an autorunning obstacle course where your character moves automatically to the right and the player can either go UP or down. And whenever the player reaches the end of the course it should stop the autorunning cycle.

And here is the catch.

Whenever i finish the race, my character does stop auto Moving but my regular walk isnt possible it is stuck with the only vertical mouvement of the mini-game.

I cant take pictures cause they are to heavy for the servers to handle so ill write the event myself.

So the first one needs no details it just teleports you to the mini-game.

The event on the mini-game map is as followed :

- 2 pages

1 page : condition : surf mini-game ( its activated by the event that teleports the player)
trigger : autorun
-set mouvement route : player (wait)
: speed 5
: frequency 5
Control Switch surf mini-game go : on

2 page : conditions : surf mini-game
Surf mini-game go
Trigger : parallel

-set movement route : player (repeat)
: move right

And that is for this event.
Then there is the common event. And here Comes the problems.

Mini-game surf : trigger : parallel Switch : mini-game go

-if : button [ down ] is pressed
Set movement route : player move down
-if : button [ UP ] is pressed
Set movement route : player move UP

- control variable : character X = Map X of player
- control variable : character Y = Map Y of player

-if Character X = 4
If character Y = 8
Play sound effect
Shake screen
Transfer player at the start of the course.
I have multiple of those coordinates conditional branch for each and every obstacle. I also have one where the character jumps on a ramp but thats not relevant.

And then AT the bottom of the list is this

- if character X = ( position of the finish Line)
Transfer player : podium
Control Switch : surf end = on

And then AT the podium Map i will have an event on autorun that will turn off both the
Surf mini-game and surf mini-game go switches.

And as the common event IS running if the event thats now turned off. How IS it that it is still in action ? Because i Can still only move my character by going up or down just liké in the mini-game despite this event being off.

Please help me i can't seem to find a solution. Ive tried changing the parallels to autorun and vice-versa but nothing changes.

I really want this mini-game in my game just for people to have a fun little break from the main game and also cause its supposed to have a better purpose. Like giving rewards to the player as in the likes of skins for their character or skins for the creatures they use on their team ( yes the game is a Monster catching and training game)

So its not like i Can scrap that Idea.

Thanks to anyone who would help me.
Have a nice day or evening or night or whatever period of the day.
Sorry for some or thé spelling il french and so is my phone's keyboard and he's not used to english yet.
Rather than trying to type it all out, please just attach some screenshots of the event. If you use Shift+Windows+S for the snipping tool (or Alt+Print Screen for the current window), the picture will not be too large to attach.

But basically if you're having a problem like this, either you're not turning off the switch that activates your event, or you're accidentally reusing it someplace else that's turning it back on.

You can try to use the Event Searcher to look for the second case.
I cant take pictures cause they are to heavy for the servers to handle so ill write the event myself.
If the picture you take with alt-prtscrn (reduces screenshot to the active window instead the entire desktop) and stored as png/jpg is still too large, then load it in an image program and reduce its size by 50% and maximum compression - that should be readable enough.
Sounds likely to me that you need to reset your player's controls. Just turning the mini game off is not going to revert a player's controls back to normal.

You need to run another event setting the control scheme back to how it normally runs, after the surfing mini game is over.

Edit: Doesn't necessarily have to be a "new event", just some event code after the mini game is done that sets the control scheme back to whatever you normally have it at.
Sounds likely to me that you need to reset your player's controls. Just turning the mini game off is not going to revert a player's controls back to normal.
From reading the original post, it's not like there's some code being run that fundamentally alters the controls.

It's a parallel event that monitors button input like lots of people do. There's nothing to revert except to stop running the parallel event.

That being said, there is probably some kind of logical error that's not in the text description or not apparent from just reading it, so waiting on screenshots is probably the only thing to do.
I will post the screens in 30 minutes. Have a Quick thing to do beforehand
From reading the original post, it's not like there's some code being run that fundamentally alters the controls.

It's a parallel event that monitors button input like lots of people do. There's nothing to revert except to stop running the parallel event.

That being said, there is probably some kind of logical error that's not in the text description or not apparent from just reading it, so waiting on screenshots is probably the only thing to do.
So here are the screen shots.

Screenshot 2023-10-10 145738.png

So this is the first page of the event that launches the mini-game. So again it's only purpose is to speed up the characters movements.
Screenshot 2023-10-10 145748.png

so this is the actual meat and potato of the autorun function.
Screenshot 2023-10-10 145803.png


And this is the common event that makes up for the player's input. i'm not going to show the full content because it's a lot of copy and paste for each and every obstacle on the path.
But the last screen will be about when the players crosses the finish line
Screenshot 2023-10-10 145812.png

and this is the event on the podium
Screenshot 2023-10-10 150427.png


And that's it for the eventing . Hope it helps
Just from looking over these, I would recommend you look up and do some additional event tutorials - there are a number of series on YouTube, in addition to the instructions that came with MV.

I see several Autorun and parallel events that never actually turn themselves off - Erase Event is not permanent. It only removes the event until the map is loaded again.

I also see multiple parallel events without any Wait command, and you almost never want that. The one case where it makes some sense is in your Common Event 11. But, for example, the second page of Event 2 is trying to move the player right 60 times per second.

To your question - you're saying that you see "Couscous malgache", indicating that event has run, but you still can only move vertically. Except there's nothing in what you show of Common Event 11 that prevents you from moving horizontally.

That was being done by the second page of map event 2, and you're no longer even on the same map as that, right?

So I don't see an immediate cause for your glitch. Maybe someone else will notice something.

You might benefit from this plugin which gives you a menu you can look at in-game to see which switches are on and what value variables have.
Just from looking over these, I would recommend you look up and do some additional event tutorials - there are a number of series on YouTube, in addition to the instructions that came with MV.

I see several Autorun and parallel events that never actually turn themselves off - Erase Event is not permanent. It only removes the event until the map is loaded again.

I also see multiple parallel events without any Wait command, and you almost never want that. The one case where it makes some sense is in your Common Event 11. But, for example, the second page of Event 2 is trying to move the player right 60 times per second.

To your question - you're saying that you see "Couscous malgache", indicating that event has run, but you still can only move vertically. Except there's nothing in what you show of Common Event 11 that prevents you from moving horizontally.

That was being done by the second page of map event 2, and you're no longer even on the same map as that, right?

So I don't see an immediate cause for your glitch. Maybe someone else will notice something.

You might benefit from this plugin which gives you a menu you can look at in-game to see which switches are on and what value variables have.
Well thanks for the reply.
I never actually watched in depth tutorial about events. I just looked at guide to help me do a certain thing and learned from that. So everything i know from eventing is basically things i learned by myself or some guide to perform a very specific thing like a day / night cycle for exemple which is also present in the game.

I'm aware that Erase event is not permanent but as the mini-game is doable multiple times i did't mind the event coming back up every time the players wants to do the mini-game.
And i've tried everything to turn them off, setting up events that would turn the switch off but it remained active evendo super tools engine ( that i already have ) tells me that the switch is indeed off. So i tried nearly everything. The event turning itself off, having a seperate common event to turn it off, having an event on the podium stage to turn the event off as well. I even did witchcraft and demonic incantation and nothing worked ! Not even satan could help me with this. ( jokes aside i tried a lot of different options and none worked)

And yes the event on the podium says the placeholder line "Couscous malgache" to tell me that it's running and the purpose of that event is to turn the common event responsible for the vertical movement to turn off wich it does'nt.

So yeah, here we are
So everything i know from eventing is basically things i learned by myself
and that is exactly why almost everyone scraps their first project after several months when they have learned more about how the engine works.
The engine simply has too many options and quirks to "learn by doing", you need a consistent guide to learn all basics.

In this case, a lot of your problems come from misunderstanding what "set move route" really does.

First point, "set move route" does NOT move an event - then the command would be named "move event" or something like that.
What it really does is to create a main loop object containing move commands for the event, that then gives those commands to the event completely independent of the event that contains the set command for that move route.
So basically you give that command with the repeat once, and the event will continue moving right - no need to repeat the command sixty times per second to create new mainloop objects for that again and again and again.
Although in this specific case it should be the repeat flag that is removed, not the parallel trigger. It's just that both together are too much.


Second, every event (or the player) can have only one move route controller assigned/created. When you give another set move route command, the previous command is overwritten.
Sometimes that is what you want, but it can also cause timing problems with the question which command is active when if you have multiple set move routes in different events, especially different parallel events.

I strongly suggest you follow the two links to the "starting point" and to "bughunting" in my signature, those were written for beginners and in a way that they are still current for MZ despite having been written for Ace (MV and MZ have improvements over Ace, but the basics have remained the same all the time, that is why they're called basics ;-) )
and that is exactly why almost everyone scraps their first project after several months when they have learned more about how the engine works.
The engine simply has too many options and quirks to "learn by doing", you need a consistent guide to learn all basics.

In this case, a lot of your problems come from misunderstanding what "set move route" really does.

First point, "set move route" does NOT move an event - then the command would be named "move event" or something like that.
What it really does is to create a main loop object containing move commands for the event, that then gives those commands to the event completely independent of the event that contains the set command for that move route.
So basically you give that command with the repeat once, and the event will continue moving right - no need to repeat the command sixty times per second to create new mainloop objects for that again and again and again.
Although in this specific case it should be the repeat flag that is removed, not the parallel trigger. It's just that both together are too much.


Second, every event (or the player) can have only one move route controller assigned/created. When you give another set move route command, the previous command is overwritten.
Sometimes that is what you want, but it can also cause timing problems with the question which command is active when if you have multiple set move routes in different events, especially different parallel events.

I strongly suggest you follow the two links to the "starting point" and to "bughunting" in my signature, those were written for beginners and in a way that they are still current for MZ despite having been written for Ace (MV and MZ have improvements over Ace, but the basics have remained the same all the time, that is why they're called basics ;-) )
well thanks for the kind reply but i'm not planning on scrapping this project. It ain't my first either. This the true game i spent years trying to make ( first in my head and then on paper ) I started 1 year ago and it's still in early alpha at that point. And there is no way i'm scrapping this one.
I started using RPG maker nearly 8 years ago ( ain't making me look younger ) and i've never really left the beatten path with what i'm able to do. But with this game i would really like to expand on what i am able to do and learn on some test projects so that this game is also a proving expreriance for me

tldr : i'm not leaving this baby in the mud.

That being said, thanks for the reply and help, i'll try and fix my surf mini-game
It doesn't look like you ever stop the Set Movement Route Right (Repeat). If the player goes over the finish line then it will turn off the switch which stops it restarting that movement route, but the player should still be repeating the move to the right at that point. Do you have some code somewhere that's stopping the repeating right movement, and changing the player move speed back to normal?
Well i fixed the problem earlier. Dont know what i changed but ill take it.

Thx everyone for the support

Original thread: https://forums.rpgmakerweb.com/threads/common-event-not-stopping-even-when-off.161868/