MV how flash and screen shake effect when using yanfly picture common events

I am using a yanfly picture common events plugin to create a visual novel type game. I would like to use RMMV's flash and screen shake effects during dialogue in the game. However, I had forgotten that when using yanfly's plugin, the effect does not appear on top of the picture. A lot of progress has already been made and too many aspects need to be modified to replace it with another plugin.
Is there a way to use yanfly's plugin as is and use flash and shake effects on the picture? Please help me
Even if there is no way, please let me know. So that I can accept that fact and make a quick fix.
(I am using Google Translator. Sorry if there are typos or grammatical errors.)
Well the picures are part of the menu I guess so they don't move and flash like the map.
But you can always write your own shake and flash event, target only those pictures.
It shouldn't be hard to do, it is just about moving the pictures and changing their colors.
Welcome!

However, I had forgotten that when using yanfly's plugin, the effect does not appear on top of the picture.
Can you clarify this? Are you saying that if you use a regular Show Picture event command, those pictures shake? But when you have Yanfly's plugin installed they don't?
Welcome!


Can you clarify this? Are you saying that if you use a regular Show Picture event command, those pictures shake? But when you have Yanfly's plugin installed they don't?

If use a color change or shake event on the screen while the picture is bound to the yanfly plugin, the event effect will not be applied to the picture. This was written in the plugin description and I read it but forgot about it in actual use. My mistake...
1721622370250.png
Well the picures are part of the menu I guess so they don't move and flash like the map.
But you can always write your own shake and flash event, target only those pictures.
It shouldn't be hard to do, it is just about moving the pictures and changing their colors.
My project too many buttons on the screen, so it is too cumbersome to specify them individually and add effects, so I am looking for a way to use basic events. If there's no solution, I guess I'll have to change everything. ;w;
Maybe you can delete the code that bound them into the scene from the plugin?

JavaScript:
//=============================================================================
// Spriteset_Base
//=============================================================================

Yanfly.PCE.Spriteset_Base_createPictures =
    Spriteset_Base.prototype.createPictures;
Spriteset_Base.prototype.createPictures = function() {
    var scene = SceneManager._scene;
    if (scene instanceof Scene_Map) {
      this.createSceneMapPictures();
    } else {
      Yanfly.PCE.Spriteset_Base_createPictures.call(this);
    }
};

Spriteset_Base.prototype.createSceneMapPictures = function() {
    var width = Graphics.boxWidth;
    var height = Graphics.boxHeight;
    var x = (Graphics.width - width) / 2;
    var y = (Graphics.height - height) / 2;
    this._pictureContainer = new Sprite();
    this._pictureContainer.setFrame(x, y, width, height);
    for (var i = 1; i <= $gameScreen.maxPictures(); i++) {
      var picture = new Sprite_Picture(i);
      if (picture.isRelatedPictureCommonEvent()) {
        SceneManager._scene.addPictureCommonEvent(picture);
      } else {
        this._pictureContainer.addChild(picture);
      }
    }
    this.addChild(this._pictureContainer);
};
Maybe you can delete the code that bound them into the scene from the plugin?
I want to try it, but I've never worked with code before, so I don't know which part to touch. Is the code in the part you quoted the code that governs bound to the scene or picture part?
You can just delete that part and see the result. You can always make back up so don't worry.
You can just delete that part and see the result. You can always make back up so don't worry.
oh my god thank you!! It was a simpler solution than I thought. Thanks to you, I am able to maintain what I have done so far. thank you so much again

Original thread: https://forums.rpgmakerweb.com/threads/how-flash-and-screen-shake-effect-when-using-yanfly-picture-common-events.170490/