Masked 

Assistant
Veteran
Joined
Oct 28, 2015
Messages
114
Reaction score
310
First Language
Portuguese
Primarily Uses
RMMZ




m6BRKBq.png

MBS - Async Movies (1.0.2)
by Masked


 


Introduction


This plugin allows you to play movies as a asynchronous task, this way you can still control the game behavior via events.


How to use


Save the plugin in a .js file on your game's js/plugins folder, there's no need to write the exact script name thanks to this workaround.


Here's a sample usage for this script:

V7zPfRR.png



This will play the video and wait for it to end or the player to press the ok button, pretty useful for skippable cutscenes.

Further information on plugin help.


Script


GitHub: https://github.com/MaskedRpg/JS/blob/master/mv/MBS_AsyncMovies.js


Raw code: https://raw.githubusercontent.com/MaskedRpg/JS/master/mv/MBS_AsyncMovies.js


Credits


- Masked, for creating
 
Last edited by a moderator:

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
Wow.. 


Playing video and can be skipped by player.. 


Wait, can it use on opening (before tittle screen) 


:)  
 

PTS

Member Title? :D
Veteran
Joined
Jan 6, 2016
Messages
35
Reaction score
3
First Language
ru
Primarily Uses
1. What file extensions are supported?


2. "Play Movie: movie".... "movie" - it`s file name or what?


3. 

exact script name thanks to this workaround



broken link. forum engien cant find post # 474300
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,812
Reaction score
896
First Language
German
Primarily Uses
RMMZ
Either remove the "?view=..." part or follow the link in my signature.


@Radis3D No, but you might take a look at my Splash Video plugin:
 

 Masked 

Assistant
Veteran
Joined
Oct 28, 2015
Messages
114
Reaction score
310
First Language
Portuguese
Primarily Uses
RMMZ
@PTS 1. The script uses the same method as the 'Play Movie' event command, so it should support the same extensions (.webm and .mp4).


2. It's the filename, I just used the default "Play Movie" command.


Iavra has already answered the others.
 
  • Like
Reactions: PTS

PTS

Member Title? :D
Veteran
Joined
Jan 6, 2016
Messages
35
Reaction score
3
First Language
ru
Primarily Uses
@PTS 1. The script uses the same method as the 'Play Movie' event command, so it should support the same extensions (.webm and .mp4).


2. It's the filename, I just used the default "Play Movie" command.


Iavra has already answered the others.



Hi, tnx, but i have problem.


1. Put 111.mp4 file (duration 35 seconds) in Movie folder


2. Create event (button trigger) and add: 


Comment: <AsyncVideo>
Play Movie: 111
Wait: 60 frames


3. Start test & execute event:


2016-02-03 11-10-47 Test1.png
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,812
Reaction score
896
First Language
German
Primarily Uses
RMMZ
Does the file "111.webm" also exist? MV will pick the correct video depending on the environment, so to be safe you should try to put both formats in there.
 

PTS

Member Title? :D
Veteran
Joined
Jan 6, 2016
Messages
35
Reaction score
3
First Language
ru
Primarily Uses
Does the file "111.webm" also exist? MV will pick the correct video depending on the environment, so to be safe you should try to put both formats in there.



Yes, you are right!


I added a .webm version, and plugin worked well. Tnx!
 

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
Either remove the "?view=..." part or follow the link in my signature.


@Radis3D No, but you might take a look at my Splash Video plugin:

so, it just for the map event?


sankyu.. :)
 

Qwazori

Villager
Member
Joined
Oct 10, 2017
Messages
17
Reaction score
0
First Language
Russian
Primarily Uses
RMMV
It looks like the <AsyncVideo: id> comment turns off the corresponding switch at the beginning of the video but does not turn it on when the video ends
 

darkfire32

Warper
Member
Joined
Apr 25, 2022
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I was wonder if it is possible to put the chat box above the video?
 

Latest Profile Posts


imgur sure is getting weird, one day I lose gradually all my images, the other I get them back randomly and then again they disappear again.
took me lots of tries to show an image, and I have to show it as the imgur post.
Despite OPT2 praise it still has some strange stories in it. Lady Mikka is trying to work herself to death because of guilt. Guilt over what? ¯\_(ツ)_/¯ So instead of finding a NPC to have a heart to heart with her they decide the cure is a new kimono. So when she drops dead she'll at least be well dressed. I haven't even got to the strange part yet.
Did so much work on the game today. I wish I could post it all in this status update but there is a character limit of course haha. I thought about making a topic for updates, though... maybe.
The most recent sign that I am old. I have done martial arts for over 4 decades. Never HAD to stretch out. Good, of course, but never required. Was doing some kicks in the kitchen because, why not, and I felt a pop in the back of my thigh. Now I am limping around. Gotta love getting old.
One of the biggest perks of being fluent in English is how many new and interesting recipes I am able to find and try out that I would have hardly come across if I just spoke my mothertounge :3

Forum statistics

Threads
131,682
Messages
1,222,219
Members
173,435
Latest member
TheAmplifier
Top