Hello, I just started using MZ and I'm really liking it! I used Unity for my last project, and wanted to try an RPG instead of what I did previously.
My current issue comes from this: I want to have a lot of things you can interact with, which will show a zoomed in picture in the background, and then display some text.
Now, I wanted to make this easier since I would be doing it a bunch, so I made a script to basically take an image, fade it in, and also fade in a full black background, sort of like a fade out the screen thing, so just this image is showing up. I did this with the black background because I dont necessarily want every image I render in 3d to have to fill the entire screen.
However, and this is very weird to me, the screen flickers when fading in. And when I say screen, I mean the entire monitor, not just the window the game is constrained to. It flickers only near the end of the fade, and its a whitish almost flash.
Here is the code I used for this:
Any idea why this might be happening?
My current issue comes from this: I want to have a lot of things you can interact with, which will show a zoomed in picture in the background, and then display some text.
Now, I wanted to make this easier since I would be doing it a bunch, so I made a script to basically take an image, fade it in, and also fade in a full black background, sort of like a fade out the screen thing, so just this image is showing up. I did this with the black background because I dont necessarily want every image I render in 3d to have to fill the entire screen.
However, and this is very weird to me, the screen flickers when fading in. And when I say screen, I mean the entire monitor, not just the window the game is constrained to. It flickers only near the end of the fade, and its a whitish almost flash.
Here is the code I used for this:
JavaScript:
PluginManager.registerCommand(pluginName, "fadeOutAndShowImage", function (args) {
//wipe any old pictures
$gameScreen.erasePicture(defaultVoidPictureId);
$gameScreen.erasePicture(defaultExaminePictureId);
//show the void, at 0% opacity
$gameScreen.showPicture(defaultVoidPictureId, 'void', 0, 0, 0, 100, 100, 0, 0);
//show the image requested at 0% opacity
$gameScreen.showPicture(defaultExaminePictureId, args['image'], 0, 0, 0, 100, 100, 0, 0);
args['frames'] = parseInt(args['frames']);
//fade in over time
$gameScreen.movePicture(defaultVoidPictureId, 0, 0, 0, 100, 100, 255, 0, args['frames']);
$gameScreen.movePicture(defaultExaminePictureId, 0, 0, 0, 100, 100, 255, 0, args['frames']);
this.wait(args['frames']);
//wait for entry
this.setWaitMode('message');
});
Any idea why this might be happening?