What causes this behavior?
Why do pictures show above character sprites on the map?
Learning Ruby and RGSSxDifferent viewport?
Their Z value
Developer's desire to make a game that doesn't look broken nor bugged.
Not quite. They're in a different viewport, changing the z won't do anything useful if your objective is to get them to show below characters. TIlemap and characters are in @viewport1 while pictures are in @viewport2 (Spriteset_Map). 🙂
How does that have anything to do with a precoded display of picture over sprite? xD
The way the question is presented doesn't ask specifically what part of the code causes it.
Maybe looking at this script would be of help?
It's not part of the default scripts, but that's the best I can think of.
It's not part of the default scripts, but that's the best I can think of.
Who coded the display?
Having pictures in a viewport on top of the one used for characters and tilemap is a logical decision for most people. Imagine how pictures would look below characters and above the tilemap. Same as with pretty much everything, some people may want to display pictures below characters for some reason, but it's a minority.
I don't know, it's the engine default! In another topic, I'm trying to have a picture below a character, but it seems the viewport would have to be altered unless I make it a character sheet.
What I wanted to say by making that question, is that someone (probably Yoji Ojima) coded it having some design reasons in mind, that probably have something to do with not making the game look weird nor bugged and with not complicating the development process needlessly.
If you need to use picture commands, then it wouldn't be hard to make the picture display below the character and it would make sense. Check if the script linked by Seacliff does what you want, if not, link me to your topic 🙂
It's alright - the image was offset anyway. I solved it by taking it into Photoshop, shifting it around and then increasing the image canvas size so that it could also work as a characterset/spritesheet.
Well, I know of some script where you use that then it automatically goes over there, some games have them in the middle, or like in some JRPGS it shows the character in the middle then does the bust. Or cause they want you to learn 😉
Viewport1, where the map sprites and tilemap present. It also has shake function and tone. If picture displayed on the viewport1, pic will be blended with the tone and shake.
Viewport2, where the picture currently exist. Screen shake and tone wont affect the picture. Picture mostly used as a 'message' just like why message box shown above the characters on map and shake screen n tone wont affect them.
Viewport2, where the picture currently exist. Screen shake and tone wont affect the picture. Picture mostly used as a 'message' just like why message box shown above the characters on map and shake screen n tone wont affect them.
Original thread: https://forums.rpgmakerweb.com/threads/why-do-pictures-show-above-character-sprites-on-the-map.35809/