Battle background filters

Desolaser

Strange programmer
Member
Joined
Aug 17, 2018
Messages
6
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
Battle background filters v1.0.0
Desolaser

Introduction
With this plugin you can add some crazy effects to the background, even create earthbound-like effects in the battle background, with the help of at least 8 different types of filters that can be added to both backgrounds of the battle scene.

Features
- You can add filters to both battle backgrounds.
- There are 8 types of filters.
- The filters can be static or animated.
- Possibility of change filters initial parameters to customize some aspects of the effects.
- Plugin commands to apply the effects.

Setup
This plugin will not work if you don't have the pixi-filters.js library added to index.html. Then you have to add this line of code within the body of the index.html in the root directory of the project:

<script type="text/javascript" src="js/libs/pixi-filters.js"></script>

If for some reason you don't have this library (the library comes with the plugin). You can download it from this page:

https://cdn.jsdelivr.net/npm/pixi-filters@2.6.1/dist/pixi-filters.js

Once you have the library, then you have to copy it to this path:

(name_of_rpg_maker_project)/js/libs

With that the plugin should be ready to function properly.

How to Use

This works with plugin commands which are:

set_filter_bg_1 <filter type> <is animated?>
set_filter_bg_2 <filter type> <is animated?>

This have to be used in the game troops event screen.

Types of filters

There are eight types of filters:

1. Twist filter.
2. Bulge pinch filter.
3. Ascii filter.
4. Glitch filter.
5. Old film filter.
6. Pixelate filter.
7. Cross hatch filter.
8. Zoom blur filter.

These filters can be added to both backgrounds at the same time and with different types of filters.

Hint: Its not a good idea use filter 7 in background 2, because the transparent zone will become non-transparent, that means that background 1 will be covered.

Animation

You can define if the filter is animated or not. Use 1 if you want the background animated, if you write something else the animated function will not work. The animation movement depends on the initial parameters.

Hint: Cross hatch filter can't be animated.

Glitch filter mode

In the parameters there is a special parameter called Gl Filter initial fillmode. This parameter have only five possible inputs, which are:

0: TRANSPARENT
1: ORIGINAL
2: LOOP
3: CLAMP
4: MIRROR

I can't explain this with words, but you can have an idea of how this works. I recommend to test fillmodes by yourself if you want to know more about this.

About other parameters, the description is in the plugin manager.

Example

To add non animated twist filter in background 1:
set_filter_bg_1 1

To add animated ascii filter in background 2:
set_filter_bg_2 3 1

As said before, you can use both at the same time.

Screenshots
In this section i will show you the effects of the filters applied to one background.

Original:


Twist filter:


Bulge pinch filter:


Ascii filter:


Glitch filter:


Old film filter:


Pixelate filter:


Cross hatch filter:


Zoom blur filter:

Downloads

Download demo

Download script

FAQ
Q: What happens if i add 2 filters to the same battle background?
A: The second filter you added will overwrite the first.

Q: Why filter 7 doesn't animate?
A: The filter 7 is an static filter by default, there are no parameters to modify over time.

Q: Why filter 8 doesn't make big difference in static mode?
A: Because Zoom blur initial strength is 0, if you want to use filter 8 in static mode you will have to
increse the Zoom blur initial strength a little. (supports numbers between 0 and 1).

Q: What happens if i use the plugin command in an event on the map scene?
A: I don't tried that, but obviously will not work.

Terms of use
- This plugin is free for commercial and non-commercial use.
- You have to give the proper credits to "Desolaser".

Credit and Thanks
- Desolaser.

Author's Notes
Maybe in the future i'll add more flexibility to animated filters, but if you want to give me some ideas to modify the plugin parameters, you are welcome.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,864
Reaction score
11,071
First Language
English
Primarily Uses
RMVXA
set_filter_bg_1 <filter type> <¿is animated?>
So for those with an English language keyboard, which has no upside down question mark, is the script call
set_filter_bg_1 <filter type> <?is animated?>
 

Desolaser

Strange programmer
Member
Joined
Aug 17, 2018
Messages
6
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
So for those with an English language keyboard, which has no upside down question mark, is the script call
set_filter_bg_1 <filter type> <?is animated?>
Haha i forgot that detail, I'll have to edit that.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On the plus side, if all this rioting sparks another Covid outbreak... I will have a whole lot of time to work on my game. Not exactly how I wanted to get that time, but hey I'm a glass is half full... of RM kind of guy. :LZSwink:
A video once in a while won't hurt.
Have a craving for a Nesquik milkshake. No idea why. Haven't had one since I was a kid. lol. I remember them kinda tasting nice, but also leaving a lot of nasty powder at the bottom of the cup.
The more I think about it, the weirdest part of going to work post-virus will probably be getting used to seeing my coworkers' mouths again. :LZYshock:

Forum statistics

Threads
98,067
Messages
949,004
Members
129,340
Latest member
guangdi
Top