TitleVideo Plugin v1.1
I'm an experienced web developer just getting started with RPG Maker MV, and this is my first plugin. Hope you enjoydata:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7.
TitleVideo v1.2.0
Ryan Sivek (NanoWizard)
https://www.youtube.com/embed/erakOU2w_CY
Introduction
This is a simple JavaScript plugin for RPG Maker MV that allows the addition of a video to the title screen above the background image. Parameters can be tweaked to get several various effects.
How To Use
Place the video files for your target platforms into the project's "movies" directory and this plugin will automatically select the video file using the same criteria RMMV uses to determine video compatibility on the current platform.
Make sure the Video Name parameter has the filename WITHOUT EXTENSION. For example, if you have a video named "TitleMovie.webm" in your movies folder, the Video Name parameter should be set to "TitleMovie".
RMMV currently supported movie formats are .webm and .mp4. So for wide distribution you should include both file types.
Width and Height can be set to "auto" (window dimensions), "video" (original video dimensions), or a specific number.
For Playback Rate, Values between 0 and 1 cause the video to play in slow motion. Values greater than 1 play in fast forward.
See PIXI.js documentation for compatible blend modes: http://pixijs.download/dev/docs/PIXI.html#.BLEND_MODES
See http://www.color-hex.com/ for hex color samples if you want to modify the tint for the video sprite
Using Multiple Videos
It is possible to overlay multiple videos. Simply copy the TitleVideo.js file to another file in the plugins folder with a new filename, and modify the following line inside that file:
Code:
var parameters = PluginManager.parameters('TitleVideo');
To
Code:
var parameters = PluginManager.parameters('NEW_FILENAME');
Replacing "NEW_FILENAME" with the filename of the copied js file without the ".js" extension.
For example, if I copy TitleVideo.js to TitleVideo2.js, I would change the line above inside TitleVideo2.js to be
Code:
var parameters = PluginManager.parameters('TitleVideo2');
Basically this method allows you to add each video as a separate plugin and modify the parameters for each video separately as you see fit.
Script
https://github.com/nanowizard/rmmv-title-video/raw/master/TitleVideo.js
Terms Of Use
- Credit to the author Ryan Sivek is appreciated but not required
- Plugin is free to use, modify and distribute for any use including commercial use according to the terms of the license
- Do not claim as your own work
Github Repo
https://github.com/nanowizard/rmmv-title-video
Changelog
v1.1 - Added ability to loop a custom section of the video instead of the entire thing
v1.2 - Added volume parameter and video will now adhere to Master Volume setting
Notes
Overlay video in the demo: https://pixabay.com/en/videos/flourish-flowers-swirls-abstract-2656/
本贴来自国际rpgmaker官方论坛作者:NanoWizard处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/titlevideo-plugin-v1-1.81048/
页:
[1]