Action Button Glitch

I have found a bug, I still have to test it later today on a new game to see if its to do with plugin's but appricate it if others could test.

Very simply I have a camera pan to give you the layout of a cave you have just entered, there is a switch to clear your path right at the start, it has 3 pages:
1. Blank
2. Clear path (switch to page 3)
3. Block Path (switch to Page 2)

So you can't move forward untill the camera has panned, page 2 is switched on at the end of the camera pan...heres the glitch

If you stand next to the switch when the 2nd page is activated the action button will no longer work, I am confused and scared how this has not come up till now.
I have used event touch and this works.
show us screenshots of the pages.
I can think of several settings where that could happen, but they are settings on the event and not bugs on action button (yours would be the first report ever that the action buttons are bugged)

for example, the position where the player has to be for the action button to work depends on the priority of the event.
The reason I say its a bug is becuase only 2 factors allow the event to work: 1 that your not standing next to it when the switch is changed, 2 that it's not on Action Button.

Using your exsample of the position where the player has to be for the action button to work depending on the priority of the event, why would being next to the event when its activation switch is triggered change that or any other of the settings on the event.

Hopefully i'm wroung
several things on those events are simply nonsense.

first, why do you turn on or off the switch 001 by move route instead of by control switch command, and why do you do that several times with delay between?

that will not affect the self-switches of those events if you believe that, and if you try to remote control them by real switches, that is not only a bad idea in most cases (if something is part of a single cutscene it should be controlled directly, not indirectly), but even if that remote control by switch is needed you should give each event its own, different switch for that instead of always using switch 001.


second, as far as priority goes:
If the priority is set "below characters", then the player needs to stand on the event to trigger it with an action button. You wouldn't believe how often someone places the event on an impassible signpost and then sets it to below, making the player unable to trigger it.
If the priority is set to "same", then the actor needs to stand next to the event AND face it - if he looks north but the event is to the west he will not be able to trigger the event next to him.


third, I suggest that while playtesting, you should change the sprites on different pages of the switch to different things, like a fire for first page, a column for the second and a monster for the third.
Because in 99% of the cases where people believed their triggers to be non-working, the truth was that the wrong page was active instead. and with different sprites you can see which page is truly active.


Because no matter what you think, the action button is NOT broken or glitched. That is such a basic function that there would be a storm of reports about this if that really was the case. And it is extremely unlikely that a plugin broke that function, unless you're using a damaged plugin either.
Firstly everything you mentioned as nonsense isn't and works perfectly as intended.

Secondly, I am aware of how priority works but regularly lose minutes here and there from what you mentioned so get why its always worth mentioning.

Thirdly I had already done the sprite changes etc and it's not working but after trying in a new game the same problem cannot be replicated so is most likely with a plugin somewhere
Firstly everything you mentioned as nonsense isn't and works perfectly as intended.
Just because something seems to work does not mean that it isn't nonsense.

There are differences between having a switch changed by control switch command and by a set move route command. These differences are internal and in the structure you have used there is no detectable difference.

However, there are cases where that difference will cause a lot of problems, and even if they work here as intended that sturcture will cause hidden timing delays.
So it will be much better if you exchange every set move route used for changing a switch to the equivalent control switch command, and keep using that control switch command instead of the set move route command as the default.

because the only reasonable use of the set move route variant of control switches is when having a longer looping move route that needs to be synchronised with something outside it. Using that as the only command in a set move route is always nonsense, even if it seems to work.



The problem here is that each set move route creates a new element in the main game loop. Each of these elements need to be handled by that loop, and the more elements are in the game loop the more difficult timing problems might arise.
So it might work now, but especially if you continue to use that construct sooner or later you will overload the game loop with more elements than could be handled without lag or timing problems.
The direct control switch command has none of those complications and will never add to lag, only the set move route switch can add to that.
Just because something seems to work does not mean that it isn't nonsense.

Just because you know one way things can work does not mean everything else is nonsense.

This would be very helpful in a conversation on lag, though for me it doesn't change the fact that it's still currently the best format for how I have everything laid out.

I did solve the actual problem though, by not disposing of the event executing the camera pan properly it became an invisible obstruction depending on your coordinates.

Original thread: https://forums.rpgmakerweb.com/threads/action-button-glitch.90401/