Removing the white screen flash when entering battle.

Hello!

I've started looking into battle transition plugins and have more-or-less had a pretty good time exploring them. However, one thing that's irrelevant to the plugins I've been using is the screen flash. By default, RPG Maker MV flashes the screen and zooms the screen before entering battle. Typically, this is fine.

However, when using alternate battle transition effects, it becomes a bit jarring. Now, I know the screen flash is an RPG Maker MV thing and not a battle transition plug-in thing, so I figured it would make sense to ask here.

How could I go about removing that screen flash? Is there a line of code somewhere I should remove or replace?

Thank you.
Bump.
@Crysillion Place the following into a .js file in the 'plugins' folder and add it to your project. This should completely disable the flash.

Code:
(function($) {                                                                       // {

  $.prototype.startFlashForEncounter = function(duration) {

  };

})(Scene_Map);                                                                       // }
@Crysillion Place the following into a .js file in the 'plugins' folder and add it to your project. This should completely disable the flash.

Code:
(function($) {                                                                       // {

  $.prototype.startFlashForEncounter = function(duration) {

  };

})(Scene_Map);                                                                       // }

Thank you. This works perfectly.
@Ossra Would you know how to remove the zoom-in effect it does as well? If not, I can just make another topic. I should've probably asked about that from the very beginning but it didn't cross my mind.
@Crysillion Depending on how the battle transition plugins that you are using function, the following may cause them to stop working. But if not, the following should eliminate both the zoom-in and flash of the default transition.

Code:
(function($) {                                                                       // {

  $.prototype.encounterEffectSpeed = function() {
      return 0;
  };

})(Scene_Map);                                                                       // }
@Crysillion Depending on how the battle transition plugins that you are using function, the following may cause them to stop working. But if not, the following should eliminate both the zoom-in and flash of the default transition.

Code:
(function($) {                                                                       // {

  $.prototype.encounterEffectSpeed = function() {
      return 0;
  };

})(Scene_Map);                                                                       // }

Sadly, it does prevent it from doing anything at all. I appreciate your attempt, though.
@Crysillion Here is something else you can try :

Code:
(function($) {                                                                       // {

  $.prototype.startFlashForEncounter = function(duration) {

  };

})(Scene_Map);                                                                       // }

(function($) {                                                                       // {

  $.prototype.setZoom = function(x, y, scale) {

  };

})(Game_Screen);                                                                     // }

Although this can cause problems for any plugins that use the 'setZoom' function.
@Crysillion Here is something else you can try :

Code:
(function($) {                                                                       // {

  $.prototype.startFlashForEncounter = function(duration) {

  };

})(Scene_Map);                                                                       // }

(function($) {                                                                       // {

  $.prototype.setZoom = function(x, y, scale) {

  };

})(Game_Screen);                                                                     // }

Although this can cause problems for any plugins that use the 'setZoom' function.

I have a plugin that uses zoom, so I was already writing this off as not being compatible. To my surprise, it is compatible, and it works in full. You've solved my problems. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removing-the-white-screen-flash-when-entering-battle.113123/