Encounters only playing when moving around with mouse

The encounters on my world map won't play if I'm using the keyboard or gamepad. Only if I specifically click on the map with my mouse..

not sure what's wrong here..
Perhaps a screen shot of one of the encounter events might help?  I only use keyboard, and I have had no problems, so it's not the engine in and of itself, but something else.
well it's not so much an event..just encounters regulated from the Edit on the map itself. 

maybe I should add that this is linked to a previous post of mine. I use YEPRegionEvents plugin. I basically use region on the world map to assign particular battle backgrounds. 

Example : Grassland background for region 1, meadows for region 2 etc. Then in the Edit of the world map I tell Spiders encountered are in region 1, hornets in region 2 etc..

Now, everything works fine with the battlegrounds changing, and monsters spread by regions. It's just that now, my player will only engage in battle when I use the mouse to move around. When I use the gamepad or keyboard..there's just no encounters at all...it's just so weird..
still, that means you made a mistake in the event code somewhere because that is not how the region events are supposed to work.


So please give us a screenshot of your event, we need that data to identify where the code went wrong.
 

image a telecharger gratuitement

 



hebergeur dimage


do you need other screenshot? what would be useful ?
It looks like it has to do something with the game loop sequence where the plugin is entered.


Why are you using the map note override for the events? Can you test it with using the regular assignemt of regions and common events?


I know that the override with the map note was added later, it might have been placed outside the correct loop.


So better assign the region ID with the plugin manager and test again.
Good point, If I erase the notetags , the process still works with changing the backgrounds...but no encounters happen , unless I click on the world map with my mouse, 

futhermore, I just created another new project from scratch and the same problem occurs
I'll go ahead and copypaste the answer I wrote on my website so that people here can see it, too:

That’s because whenever you run an event (not just a common event), RPG Maker MV (not I) will prevent the encounter steps from dropping as events take priority over all else. I’m guessing you’re using the region events to change the battleback each time you step on something. If that’s the case, what you can do is in the script calls::

 

Script Call:

$gamePlayer.updateEncounterCount();That way, you will have the encounters adjust properly as you move through the areas.
Thanks Yanfly, that's a load off my mind.

Original thread: https://forums.rpgmakerweb.com/threads/encounters-only-playing-when-moving-around-with-mouse.48662/