Idk if it's just me and my project, but sometimes events that are triggered with the action button do not trigger on the first try (and sometimes not even on the second). I don't know why this happens because it's random. Sometimes I walk to the event and press the action button and nothing happens. Then I press the key again and the event triggers (and sometimes doesn't). Then I reset the game and do exactly the same and the event triggers on the first try. Has someone else experienced this? Is it common? Thanks for reading.
Weird problem that makes events not trigger on the first try (action button)
RPG Maker MV SupportIt sounds as if you have a problem with lag, which is often caused by too many or too complex parallel processes.
Yeah, I use some common events, but they don't run as parallel events. They're just triggered by action buttons. Maybe my pc is the problem?
not exactly.
"lag" means that the computer is too busy to handle everything in time. As I mentioned that is usually because too many parallels make it busy, but parallels are not the only thing that creates lag.
there are many other causes that add to lag, which is why we can only guess.
"lag" means that the computer is too busy to handle everything in time. As I mentioned that is usually because too many parallels make it busy, but parallels are not the only thing that creates lag.
there are many other causes that add to lag, which is why we can only guess.
Have you tried to isolate the issue? turn off plugins if you're using any, move events to a new empty map or a new project, check the console for errors, etc.
There are a lot of factors that could mess with event activation and timing so it could take a while to identify the cause, but in most cases it's an easy fix once you isolate it.
There are a lot of factors that could mess with event activation and timing so it could take a while to identify the cause, but in most cases it's an easy fix once you isolate it.
Yeah, it seems that the event which was constantly running because it was a parallel event. Now I changed it and now the problem seems to be fixed. Question: Does running common events from from events cause some kind of lag? I put all the event commands inside common events because that way I can keep track of everything. Thanks for your solution btw!
That could be the problem. Only 1 common event can be executed at a time (unless they're parallel process of course) so if your map event is calling a (non parallel) CE while another (non parallel) CE is already running, it will not be executed immediately but rather wait for the current one to finish. this may look like a lag but it's how the engine is supposed to work.
Thanks for your answer. I don't know if I get it, so I'll explain what I usually do: I create an event that'll be a chest that gives treasure when interacted with (action button). And instead of putting all the event commands inside the event I set a variable (chest instance, for example) to X and call a common event. Inside the common event I check the value of the variable "chest instance" and give the corresponding rewards then activate a self switch so the chest changes to an empty chest, for example. That's the logic for most of what I do. Does that create lag or some other kind of problem? Thanks again for answering!
It sounds fine to me. It would be best to see your full event to check for any misplaced commands but the logic itself should work.
To clarify this a bit further: common events don't cause any more lag than doing the same thing inside a regular event. Parallel events tend to cause lag, regardless of whether they're common or not.
Thanks for your answer and for making that clear. Now I can work without worrying so much about performance.
Thanks a lot for your answer. Everything works how it's suppose to.
Original thread: https://forums.rpgmakerweb.com/threads/weird-problem-that-makes-events-not-trigger-on-the-first-try-action-button.162359/