Hi everyone,
Is it possible to change the layer depth of Pictures so that they float on top of text boxes? Noticed when i move them to be near a text box they appear just below them instead of on top.
The system was designed to have the text messages visible over all graphics so the player COULD read the dialog whenever, and not to be obstructed.
Twas asked before. Basically... it's a YUCK inquiry. Not the inquiry itself, but that the solution may cause problems.
What you are looking for is something called the z-depth of a graphic. You know the X coordinate and Y coordinate. The Z coordinate or Z-Depth indicates how close the image appears or is layered in the screen. 😛 It does look like I teach as I do this, eh?
Now as you are inquiring about the layering between pictures and the messages, I will point out the areas where you adjust the Z-Depth betwen the two. For pictures, it is the update method of the Sprite_Pictures class, particularly line 62. And for the message system, it is line 15 of the initialize method within Window_Message itself.
Word of warning... changing the z-Depth settings in Sprite_Pictures does absolutely NOTHING!!!!!! Increasing it .... zilch.
However, the z-Depth of the message window, as defined in Window_Message, is set to 9998. That's pretty dang high! Now, it is meant to be high to handle instances of tiles that may have high priority graphics that draw over others. So be forewarned. The ONLY way to hide the message window under pictures is to the Z-Depth to the message window (again line 15) to 199. Even setting it to 200, and the pictures still show under.
That is extremely helpful , I am now able to simply add photos onto my text boxes now and other graphical elements.
I've not noticed any conflicts yet, though my map hasn't reached any high complexity yet. Certainly will keep an eye on that. Now having an understanding of the z-depths of the layers this will certainly open up more possibilities if i decide to really dive into the scripting system in the future. Perhaps particles and multilayer cloud layers and such.
Thanks for this quite solution, not sure how you knew to jump to 199 so quick lol