So, it's pretty well-known that pictures have a Z axis, and depending on the value of the z AND something called 'Containers', pictures could either show above something like weather effects or below Event sprites.
Changing that priority value isn't available by default. However, @caethyril has a a short and sweet plugin that allows this to be changed!
(https://forums.rpgmakerweb.com/index.php?threads/showpicture-anchor-z-change.152676/#post-1310980)
BUT, unfortunately, this only allows you to set the Z Layer of ALL Pictures. Cae even said in the plugin description,
"If you want different z-values for different pictures, you'll need some extra structure."
and oh god I need that structure right now.
I've got like 15 HUD pictures that I want to stay on top of the weather and character sprites, so
p.z = 11;
works great, BUT
I've also got some enviromental level animation pictures (waterfall, trashcan tipping over, dumpster open close etc) that I definitely need to be below the weather and below the Player character Sprite. so
p.z = 2;
is perfect,
But as you can see the problem is it's only capable of changing the z for ALL pictures, which is not great for my purposes...
-----
So, would it be possible to add something like this to the plugin?
"if picture ID is less than 80, then set p.z = 2;
ELSE: p.z = 11;"
???
I know another person was able to do something similar for MV because they talked about coding the Z/container change based on picture ID# range in this forum post here:
forums.rpgmakerweb.com
But it was only referenced briefly, and the way they described the sprite.js seemed to be of a different structure from MZ...
Also, I know that Galv Layers is a thing, and I am using it! But I'm specifically trying to use this for some smaller objects on the map that have like 5 frames of animation and/or can be collected and removed,
(show picture 33 as A.png -Wait 8 frames -show picture 33 as B.png -Wait 8 frames etc etc )
and setting this up with pictures is just so much easier.
I hope this request makes sense. Thanks to anyone that might have an idea of what to add to this plugin!
Changing that priority value isn't available by default. However, @caethyril has a a short and sweet plugin that allows this to be changed!
JavaScript:
void (alias => {
Spriteset_Map.prototype.createPictures = function() {
alias.apply(this, arguments);
const p = this._pictureContainer;
this.removeChild(p);
this._tilemap.addChild(p);
p.z = 0.5;
};
})(Spriteset_Map.prototype.createPictures);
DEFAULT TILEMAP CHILD Z VALUES
0 : Lower tiles
1 : Lower characters
3 : Normal characters
4 : Upper tiles
5 : Upper characters
6 : Airship shadow
7 : Balloon
8 : Animation
9 : Destination
0 : Lower tiles
1 : Lower characters
3 : Normal characters
4 : Upper tiles
5 : Upper characters
6 : Airship shadow
7 : Balloon
8 : Animation
9 : Destination
BUT, unfortunately, this only allows you to set the Z Layer of ALL Pictures. Cae even said in the plugin description,
"If you want different z-values for different pictures, you'll need some extra structure."
and oh god I need that structure right now.
I've got like 15 HUD pictures that I want to stay on top of the weather and character sprites, so
p.z = 11;
works great, BUT
I've also got some enviromental level animation pictures (waterfall, trashcan tipping over, dumpster open close etc) that I definitely need to be below the weather and below the Player character Sprite. so
p.z = 2;
is perfect,
But as you can see the problem is it's only capable of changing the z for ALL pictures, which is not great for my purposes...
-----
So, would it be possible to add something like this to the plugin?
"if picture ID is less than 80, then set p.z = 2;
ELSE: p.z = 11;"
???
I know another person was able to do something similar for MV because they talked about coding the Z/container change based on picture ID# range in this forum post here:
How to make weather effects overall pictures ?
Hello. Before, to simulate night effect, I used the command Tint Screen. That way the rain is over the tint effect. But recently I changed my mind and I'm using a picture witch covering my map. Now the rain effect is below the picture. Simple question: Is it possible to show the weather...
forums.rpgmakerweb.com
Also, I know that Galv Layers is a thing, and I am using it! But I'm specifically trying to use this for some smaller objects on the map that have like 5 frames of animation and/or can be collected and removed,
(show picture 33 as A.png -Wait 8 frames -show picture 33 as B.png -Wait 8 frames etc etc )
and setting this up with pictures is just so much easier.
I hope this request makes sense. Thanks to anyone that might have an idea of what to add to this plugin!