I've searched all over and I can't find a way to let the player skip a movie in MZ. I've tried methods from threads asking about this in MV but, predictably, none of them worked in MZ.
How do I make it so you can skip a movie/video?
RPG Maker MZ Supportby default, you can only skip by asking before the video starts.
basically a show choice "do you want to watch the video" and then the play movie command in the yes branch only.
the default play movie command can't be interrupted.
However there are scripts and plugins that have provided advanced replacements for the play movie command that allows skipping. But in all those cases the way to skip depends on the plugin used, and without the plugin see above - can't be skipped.
basically a show choice "do you want to watch the video" and then the play movie command in the yes branch only.
the default play movie command can't be interrupted.
However there are scripts and plugins that have provided advanced replacements for the play movie command that allows skipping. But in all those cases the way to skip depends on the plugin used, and without the plugin see above - can't be skipped.
Instead of using the [Play Movie] event command you can use a manual script call
This way, the game won't enter a "wait" mode while the video is playing. The player can still move around, events can continue to run "behind" the video. Fun fact: You can also enable video controls or change the video's opacity.
This video element doesn't really go away when the video ends. It's just hidden. So "skipping" effectively means setting the current time to-or-past the video's duration. Or just pausing & hiding the video.
So you could have a parallel process with some "button-press" conditional branch ready to execute a script like this:
JavaScript:
Video.play("movies/something.webm");
JavaScript:
Video._element.controls = true;
Video._element.style.opacity = .8;
This video element doesn't really go away when the video ends. It's just hidden. So "skipping" effectively means setting the current time to-or-past the video's duration. Or just pausing & hiding the video.
So you could have a parallel process with some "button-press" conditional branch ready to execute a script like this:
JavaScript:
document.getElementById("gameVideo").currentTime = 11; //in seconds
document.getElementById("gameVideo").pause();
Video._updateVisibility(false);
ADMIN: I apologize if this is necro-posting, but I have a similar issue and I just figured since no one responded with results regarding the following script that I would post one.
I tried this method and it did not play any video. I guess I'll just use the regular event command for now.
@CaptainGameMaker , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
I would make a new thread and reference this one.
I would make a new thread and reference this one.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-it-so-you-can-skip-a-movie-video.149435/