Hi folks,
I have currently tweaked the color of the flash that happens for battle with this code:
However, I would like to flash an image on the screen (with the same fade in/fade out that the color usually has).
I tried changing it to this:
...but that doesn't work. I figure I probably need to change some different part of the code, but I'm just messing with stuff that other folks have written as I know nothing about JS or how any of this works.
Is there a simple way to tweak this code to instead flash a designated image? The idea would be to use an image that is the same size as the screen.
Thanks!
I have currently tweaked the color of the flash that happens for battle with this code:
JavaScript:
Scene_Map.prototype.startFlashForEncounter = function(duration) {
const color = [103, 75, 128, 200];
$gameScreen.startFlash(color, duration);
};
However, I would like to flash an image on the screen (with the same fade in/fade out that the color usually has).
I tried changing it to this:
JavaScript:
Scene_Map.prototype.startFlashForEncounter = function(duration) {
$gameScreen.showPicture(71, "Sleep", 0, 0, 0, 100, 100, 0, 0);
$gameScreen.movePicture(71, "Sleep", 0, 0, 0, 100, 100, 255, 0, 30, 0);
$gameScreen.movePicture(71, "Sleep", 0, 0, 0, 100, 100, 0, 0, 30, 0);
$gameScreen.erasePicture(71);
};
...but that doesn't work. I figure I probably need to change some different part of the code, but I'm just messing with stuff that other folks have written as I know nothing about JS or how any of this works.
Is there a simple way to tweak this code to instead flash a designated image? The idea would be to use an image that is the same size as the screen.
Thanks!