Change Z-Index Value of Specific Picture ID

Hello

Is there a way to assign z-index value to a specific picture ID so the player sprite will show above it, without changing the entire picture layer ?

I'm using Show Picture with ID 1 to tint the whole screen when a pop-up window comes up, which is also made with pictures of higher IDs so they'll show above the tint. But I would prefer if the player sprite would also be displayed above it. Ideally, picture ID 1 would sit between Tiles and the Player, at Lower Characters.

Alternatively, making the player sprite above everything could work too.

Thanks
Not possible without a plugin. By default, the player's sprite is part of the map spriteset which is below the picture layer. There are plenty of plugins that extend pictures functionality though so with some research I'm sure you'll find one that would work for what you need 🙂
Thanks for your reply !

Yeah I'm using lots of plugins that add functionalities to picture and I did some research before posting, but I did not find anything that allows Z-value change for specific pic ID, just for the entire pic layer.

Any idea on how I could achieve the effect I'm looking for ? :LZSsmile:
An oversimplification of RPGmaker's graphics pipeline is to the effect of this:
  1. Draw the below tiles
  2. Draw the below characters
  3. Draw the characters (which are Z-sorted within this layer)
  4. Draw the above tiles
  5. Draw the all pictures (which are Z-sorted within this layer)
The way that RPGmaker's graphics rendering pipeline works is that most elements actually do not contain any Z-values, but Z-sorting is done by rearranging the order which graphical elements are drawn. To achieve your effect you need a plugin that creates a new picture layer probably between layers 2 and 3 for below-player pictures to be drawn. You can assign a picture to a Z-value of minus infinity but it's always drawn after the above tiles, and appears above the above tiles no matter the Z-value.

This is a likely reason why no plugin lets you assign "Z-values" for pictures. You might instead google for a plugin that allows pictures to be drawn underneath the player.
An oversimplification of RPGmaker's graphics pipeline is to the effect of this:
  1. Draw the below tiles
  2. Draw the below characters
  3. Draw the characters (which are Z-sorted within this layer)
  4. Draw the above tiles
  5. Draw the all pictures (which are Z-sorted within this layer)
The way that RPGmaker's graphics rendering pipeline works is that most elements actually do not contain any Z-values, but Z-sorting is done by rearranging the order which graphical elements are drawn. To achieve your effect you need a plugin that creates a new picture layer probably between layers 2 and 3 for below-player pictures to be drawn. You can assign a picture to a Z-value of minus infinity but it's always drawn after the above tiles, and appears above the above tiles no matter the Z-value.

This is a likely reason why no plugin lets you assign "Z-values" for pictures. You might instead google for a plugin that allows pictures to be drawn underneath the player.

This makes it so much clearer for me, thank you.

For some reason I can't get Galv's LayerGraphics to work on my project, which would absolutely solve my issue, reason why I was looking for a workaround here. Guess I'll just keep poking at it!

Original thread: https://forums.rpgmakerweb.com/threads/change-z-index-value-of-specific-picture-id.164515/