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

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,812
Reaction score
1,447
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
293
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
293
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
293
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
497
Reaction score
86
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
227
Reaction score
46
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
497
Reaction score
86
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
894
Reaction score
5,387
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
894
Reaction score
5,387
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
55
Reaction score
17
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
894
Reaction score
5,387
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

A new RPG Maker music pack is coming out soon! Below is a demo of one of the compositions in the pack, Heroic Battle. More details coming soon!

Trying to build a child-size body. Mostly happy with it except the sideview arms - can't get them to move quite right yet. Anyway, here's the work-in-progress, with an adult for size comparison.
ChildTest-01.gif

I started in VXAce and I liked how the kids flapped their arms so that's why it's just flapping.
A character theme... finally posted some of the music tonight as celebration for 500 followers. I really like how this song came out.
Good night (or day) everyone! :kaohi:
Stimpaks and More.png

WIP of Stimpaks, Radaway, Jet and Psycho. Mentats soon to come. :D

Forum statistics

Threads
111,125
Messages
1,058,551
Members
144,352
Latest member
Boyboy180
Top