Destra47

Veteran
Veteran
Joined
Jul 14, 2020
Messages
41
Reaction score
18
First Language
English
Primarily Uses
RMMV
So I got it working in Yanfly's CTB plugin. Just did as follows in Window_CTBIcon.prototype.reduceOpacity:

this.applyGWFilter(); this._GWFilter.time = this.duration;

But when I do something similar on the Sprite_Enemy.prototype.updateCollapse method in rpg_sprites.js the effect doesn't play at all.

this.applyGWFilter("dissolveUp48", 0); this._GWFilter.time = 64;

I've played with setting many numbers for time just to see if the effect is working at all. Am I doing something wrong? Is it something to do with the fact that Sprite_Enemy is a sprite and not a window?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,430
Reaction score
1,690
First Language
Dutch
Primarily Uses
RMMV
any demo with those things and transitions on map/sprites/events?
looks really nice though.
 

Tsukimi-neko

Tsukimi
Veteran
Joined
Oct 25, 2017
Messages
101
Reaction score
299
First Language
Japanese
Primarily Uses
RMMV
So I got it working in Yanfly's CTB plugin. Just did as follows in Window_CTBIcon.prototype.reduceOpacity:

this.applyGWFilter(); this._GWFilter.time = this.duration;

But when I do something similar on the Sprite_Enemy.prototype.updateCollapse method in rpg_sprites.js the effect doesn't play at all.

this.applyGWFilter("dissolveUp48", 0); this._GWFilter.time = 64;

I've played with setting many numbers for time just to see if the effect is working at all. Am I doing something wrong? Is it something to do with the fact that Sprite_Enemy is a sprite and not a window?

I just realize that their is version problems on PIXI, but since it works fine at other events, it seems not the problem for you.

I have an idea that the problem has something to do with "visible" and "isOpen()".
As you may know, window._windowContentsSprite is set to invisible when openness isn't 255 (rpg_core.js @ line 6833). If they're drawing to content sprite, then it make sense that it disappears in 1 frame, because it is not "open".

Could you try something like this?:
Code:
var _Window_CTBIcon_updateContents = Window_CTBIcon.prototype._updateContents;
Window_CTBIcon.prototype._updateContents = function() {
    _Window_CTBIcon_updateContents.apply(this, arguments);
    this._windowContentsSprite.visible = true;
};
(simply forcing visibility to be true)
 
Last edited:

Destra47

Veteran
Veteran
Joined
Jul 14, 2020
Messages
41
Reaction score
18
First Language
English
Primarily Uses
RMMV
I just realize that their is version problems on PIXI, but since it works fine at other events, it seems not the problem for you.

I have an idea that the problem has something to do with "visible" and "isOpen()".
As you may know, window._windowContentsSprite is set to invisible when openness isn't 255 (rpg_core.js @ line 6833). If they're drawing to content sprite, then it make sense that it disappears in 1 frame, because it is not "open".

Could you try something like this?:
Code:
var _Window_CTBIcon_updateContents = Window_CTBIcon.prototype._updateContents;
Window_CTBIcon.prototype._updateContents = function() {
    _Window_CTBIcon_updateContents.apply(this, arguments);
    this._windowContentsSprite.visible = true;
};
(simply forcing visibility to be true)
Actually it works fine now for the CTBIcon as it inherits from window_base, which your plugin has some awesome code for. You can see in the image below it's working amazingly now.
GXsqNkO.png


I can't seem to figure out how to make it work for the enemy sprite, though. I'd like it to play when enemies die and play the collapse animation. i.e. the Sprite_Enemy.prototype.updateCollapse() method.

Thank you so much for your help, by the way. I know this isn't what the plugin was designed to do.
 

Tsukimi-neko

Tsukimi
Veteran
Joined
Oct 25, 2017
Messages
101
Reaction score
299
First Language
Japanese
Primarily Uses
RMMV
@Destra47
Good news! You are strong at finding solutions, I appreciate you.
for Sprite_Enemy collapsing, you can do this:

if(!this._GWFilter) this.applyGWFilter({imgName:"YourImageName", softness:0});
this._GWFilter.time = 255 * this._effectDuration / 32;

The "time" of GWFilter is just a progress of fading, for 255=show and 0=hide.
so if you don't animate time, it will remain the same for ever. Since collapse is using this._effectDuration, you can take use of it.

(p.s. the plugin should have the potential to (extend to) apply to all sprites and windows easily, but the initial design was not good enough. However, changing the design after years is also not a good idea ...)
 
Last edited:

Destra47

Veteran
Veteran
Joined
Jul 14, 2020
Messages
41
Reaction score
18
First Language
English
Primarily Uses
RMMV
@Destra47
Good news! You are strong at finding solutions, I appreciate you.
for Sprite_Enemy collapsing, you can do this:

if(!this._GWFilter) this.applyGWFilter({imgName:"YourImageName", softness:0});
this._GWFilter.time = 255 * this._effectDuration / 32;

The "time" of GWFilter is just a progress of fading, for 255=show and 0=hide.
so if you don't animate time, it will remain the same for ever. Since collapse is using this._effectDuration, you can take use of it.

(p.s. the plugin should have the potential to (extend to) apply to all sprites and windows easily, but the initial design was not good enough. However, changing the design after years is also not a good idea ...)
That works perfectly! You're my hero!
enemyFade.PNG
 
Last edited:

Destra47

Veteran
Veteran
Joined
Jul 14, 2020
Messages
41
Reaction score
18
First Language
English
Primarily Uses
RMMV
bushy.PNG
I just wanted to let you know that adding that code to the "Sprite_Character.prototype.createHalfBodySprites()" function makes a really awesome effect when characters walk through bushes.

Thank you so much for making this plugin. It's really changed how my game looks.
 

Tsukimi-neko

Tsukimi
Veteran
Joined
Oct 25, 2017
Messages
101
Reaction score
299
First Language
Japanese
Primarily Uses
RMMV
@Destra47
That is more beautiful than the default one! Great work and I like it :)
 

DarkSearinox92

Veteran
Veteran
Joined
Jan 8, 2013
Messages
536
Reaction score
95
First Language
Italian
Primarily Uses
@Tsukimi-neko

Hello Tsukimi! This script is amazing!

Please, add the possibility to use the effect for battle transition! T_T I mean, a specific command that affect only the battle transition...

It would be great!

Thank you T.T
 
Last edited:

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
231
Reaction score
47
First Language
Chinese
Primarily Uses
RMMZ
@Tsukimi-neko

Hello Tsukimi! This script is amazing!

Please, add the possibility to use the effect for battle transition! T_T I mean, a specific command that affect only the battle transition...

It would be great!

Thank you T.T
mean, a specific command that affect only the battle transition...

that is very need.
 

DarkSearinox92

Veteran
Veteran
Joined
Jan 8, 2013
Messages
536
Reaction score
95
First Language
Italian
Primarily Uses
Yes, maybe differentiate the various fades. Game start menu type, transfer fade, screen fade via command etc. Having the ability to customize fades.

As it is set now, if you set the fade image, it affects ALL existing fades in the game.
 

ImaginaryVillain

High Cultist of the Sporkle
Veteran
Joined
Jun 22, 2019
Messages
936
Reaction score
5,781
First Language
Absurdism
Primarily Uses
RMMZ
One of the only two plugins I had to give up to move to MZ. +1 towards interest at seeing it ported over. :LZSwink:
 

ImaginaryVillain

High Cultist of the Sporkle
Veteran
Joined
Jun 22, 2019
Messages
936
Reaction score
5,781
First Language
Absurdism
Primarily Uses
RMMZ
Oh? I wasn't aware of a compatibility patch. Huh... I'll have to test it out. Thanks for letting me know!
 

Gigadragon78

Veteran
Veteran
Joined
Feb 2, 2019
Messages
57
Reaction score
20
First Language
Spanish
Primarily Uses
RMMV
Welll is basically a patch for some MV plugins,most of them dont work.
EDIT: Nope,it does not work. The problem is with the Plugin Command calling,it is diferent to MV. With some changes maybe it could work but it is out of my skills.
 
Last edited:

ImaginaryVillain

High Cultist of the Sporkle
Veteran
Joined
Jun 22, 2019
Messages
936
Reaction score
5,781
First Language
Absurdism
Primarily Uses
RMMZ
Ah. I know when I looked into this particular plugin it turned out that MZ changed the whole system for screen transitions. So this plugin would require almost a total rewrite as the functions it's working with just aren't there anymore.

I might revisit the idea of this at some point, but I'd have to make something from scratch given the terms of this plugin. So I'd rather just let it's creator do it if they want to.
 

Rukichany

Warper
Member
Joined
May 27, 2021
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
hello
Basically, I wanted to know if there's a way to use this for only ONE scene, not for the whole game.
 

Latest Threads

Latest Posts

Latest Profile Posts

gotta love when a plugin you thought had nothing to do with why something else wasn't working winds up being the issue...
Doing RPG Maker News for 26th September 2021

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.

Forum statistics

Threads
115,388
Messages
1,089,518
Members
150,123
Latest member
lauram22
Top