kentaromiura

Veteran
Veteran
Joined
Nov 1, 2015
Messages
46
Reaction score
26
First Language
English
Primarily Uses
Have you ever notice how the default menu background has a very faint, almost annoying around the text, blur?

lclfKrF.gif


Would you prefer having a proper 'frosted glass' effect blur?

w3QK1r7.gif


What if my game is takes places in the past?

X2RQcCV.gif


Or what if I want to give a 8bit atmosphere?

NadzmFU.gif


Well, I guess you've now an idea of what this plugin is about, but is it just for the title menu?

Of course not! let's say you want to give your game a touch of pop art

rMKE49W.gif


Ok, you got me, where can I find this plugin?

This plugin is hosted here:

https://github.com/kentaromiura/RPGMV-Plugins/blob/master/dist/js/plugins/kentaromiura_Menu_BackgroundFilters.js

just remember to click on the raw button before saving it :)

So how does this plugin works?

Once you loaded it in your project you'll find a list of filters available, all set by defaut to 0, this means that particular filter doesn't execute,

if you want to use any of the filter, just set them to 1, if you want you can control the order the filter are applied as, for example, the DotScreen filter makes everything b/w, running it after a sepia filter may not be a good idea, you want to run it first, so you just set that to 1 and the sepia one to 2, it doesn't matter the number as long as it's bigger

Okay, I think I get it, but what if I want to have different filters for different part of my game, for example I have a section where my hero see the past, how can I make only that part sepia?

Well, this plugin provides 4 commands, quoting the help:

Plugin Command

RemoveMenuBackgroundFilter $filter Removes the specif filter if exists

RemoveAllMenuBackgroundFilters Removes any filter applied

AppendMenuBackgroundFilter $filter Adds a filter at the end of the list

PrependMenuBackgroundFilter $filter Adds a filter at the begin of the list

where $filter can be any of the following:

Blur, BlurX, BlurY, ColorMatrix, ColorStep, CrossHatch, DotScreen, Gray,

Invert, Pixelate, RGBSplit, Sepia, Twist
using a combination of this you can create your personalised list of filters,

Is there any catch?

Alas, there is, this plugin works only where a gl context is supported, so ancient browsers (this includes not recent safari ios) are not supported, but it doesn't compromise anything, in those particular instance you just fallback on the default behaviour, so it's not a huge issue.

Here's you can check a table of where this is supported http://caniuse.com/#feat=webgl

enjoy :)
 

DustyCat Media

Indie Game Purrfector
Veteran
Joined
Oct 15, 2012
Messages
115
Reaction score
71
First Language
English
Thank you for the plugin, kentaromiura! I've tried it now and it works! :)

Is there a way to invoke this using normal events outside the menu? Say for example, i want to have the blur and the gray filter applied whenever the player acquires an item from a treasure box or something.

But anyway, thanks again!
 

kentaromiura

Veteran
Veteran
Joined
Nov 1, 2015
Messages
46
Reaction score
26
First Language
English
Primarily Uses
Thank you for the plugin, kentaromiura! I've tried it now and it works! :)

Is there a way to invoke this using normal events outside the menu? Say for example, i want to have the blur and the gray filter applied whenever the player acquires an item from a treasure box or something.

But anyway, thanks again!
Yes, in the case of your example you can call

AppendMenuBackgroundFilter Blur

AppendMenuBackgroundFilter Gray

if you want to remove all previous filters you can just call

RemoveAllMenuBackgroundFilters

before that, it should look like this

L1QRuwX.png
 

DustyCat Media

Indie Game Purrfector
Veteran
Joined
Oct 15, 2012
Messages
115
Reaction score
71
First Language
English
@kentaromiura Yes that's the thing -- that was exactly the first thing i tried when i got a hold of this plugin. I tried using those plugin commands before a textbox call so that whenever the player opens up a treasure box the screen would blur and show a textbox but nothing happened. :/

And yes, i tried turning off every single plugin except for yours.
 

kentaromiura

Veteran
Veteran
Joined
Nov 1, 2015
Messages
46
Reaction score
26
First Language
English
Primarily Uses
@kentaromiura Yes that's the thing -- that was exactly the first thing i tried when i got a hold of this plugin. I tried using those plugin commands before a textbox call so that whenever the player opens up a treasure box the screen would blur and show a textbox but nothing happened. :/

And yes, i tried turning off every single plugin except for yours.
Oh, now I understand what you mean, no this plugin changes the background of menus only,

the textbox window doesn't use any menu window so you cannot do this using this plugin, sorry!

Edit:

What you want can be done with 

https://github.com/kentaromiura/RPGMV-Plugins/blob/master/dist/js/plugins/kentaromiura_SpriteSet_Filters.js

I quickly made this, so of course is quite untested apart for this:

ksftf9N.png


It should work exactly like the other plugin as most of the code is the same, I'm not exactly sure if modifying the spriteset filters is a good idea

and there may be bug, feel free to post here if you find any
 
Last edited by a moderator:

DustyCat Media

Indie Game Purrfector
Veteran
Joined
Oct 15, 2012
Messages
115
Reaction score
71
First Language
English
Works like a charm. Thank you! 

No bugs so far, but i will report any to you if ever. :)
 

kentaromiura

Veteran
Veteran
Joined
Nov 1, 2015
Messages
46
Reaction score
26
First Language
English
Primarily Uses
Works like a charm. Thank you! 

No bugs so far, but i will report any to you if ever. :)
I feel like this may conflict with other plugins setting filters when all the filters has been removed, I'll look into it better later in the week and fix that problem
 

Latest Threads

Latest Posts

Latest Profile Posts

I just lost an hour plus of time to trying to modify the _battlefield sprite... when in reality MZ calls it _battleField ;_;

Even when debugging for the "undefined value", it looked exactly the same to my 20/60 eyesight.

I really prefer this_naming_convention rather than thisNamingConvention !!
hmm... I just solved one of the more annoying sideview battler problems in MV.. Passive States and Visual States can make it so when your character is in crisis HP, they don't go back to normal walk/wait when it's their turn. they stay in the crisis motion... neat.
Apparently all of LGBT reddit hates me. I posted a simple question and only got hate mail. What's the deal? The doompost was literally 6 months ago and I've changed my views since then and apologized.
MOD NOTE: See second response before replying to this. - Wavelength
Amazing. Simply amazing...

JRPG Browser - Playlist:

Forum statistics

Threads
109,107
Messages
1,042,121
Members
141,593
Latest member
Padouch
Top