This is:
A simple plugin, allows to use a picture image as a graphic mask of another picture image.
image mask?? Using a picture Mask on a Object makes the areas with white pixels on the Mask visible on Object, and areas with black pixels invisible.
This allows to create a lot of interesting animated things like portals with moving stars inside, monitors with rotataing images, screens with scrolling text, windows with a moving landscape... and you can do it only with normal rpg maker pictures.
Demo Video:
Here a video showing a simple usage case:
https://www.youtube.com/embed/ZUlo8B11aUE
Another example:
https://www.youtube.com/embed/B32LQKoHYMY
Video
Howto:
Download MaskPlugin.js to you js/plugins folder.
Enable the plugin on tools>plugin manager
Plugin Commands:
SETMASK object_picture_id mask_picture_id
Example: SETMASK 2 3
REMOVEMASK object_picture_id
Example REMOVEMASK 2
License:
This is a simple plugin, allowed on comercial or not comercial games. Free to share, modify, adapt, copy, resell... Credit not required.
Known Issues (mainly android)
This plugin requires WebGL, on desktop webgl is usually used by default, on android rpg maker mv uses Canvas mode. There are ways to force WebGL into android devices, but at the cost of stability.
Running WebGL on Android is tricky and can work on some devices while crashing on other devices.
More Issues?
Write a comment.
本贴来自国际rpgmaker官方论坛作者:SrOscuro处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/picture-image-masking-plugin-simple-graphic-effect.119767/