Layers
From OHRRPGCE-Wiki
This is a reference for how different graphical layers are drawn in game.
- Normal map display
- Map layers, NPCs & Heroes (order is defined in the Edit Layers menu)
- Overhead tiles from map layer 0 (obsolete, for backcompat)
- Default layer for script-created slices such as sprites
- Harm tile flash
- Backdrop (both textbox and scripted)
- Text box
- Box & text
- Portrait
- Choice box
- map name
- Menus
- output of show value
- plotscripting strings
- Debug info
- NPC debug info
- Tag debug info
- Script watcher
[edit] Regarding the NPC & Heroes Layer
Currently the NPCs are all drawn, then the heroes are all drawn (or the other way around, depending on a bitset). This could easily be reproduced with a layer organization like this:
- NPCs & Heroes (container)
- NPC layer
- NPC sprite
- NPC sprite
- NPC sprite
- NPC sprite...
- Hero layer
- Hero sprite
- Hero sprite
- Hero sprite
- Hero sprite
- NPC layer
Where the order of the NPC layer and hero layers would be swapped as appropriate when a new map is loaded...
However, It would be desirable to have all heroes and NPCs in the same layer, and to automatically Y-sort them. The OHRRPGCE has never done this before, but when "tall" NPC graphics are supported in the future, this will suddenly become a very important feature.
- NPCs & Heroes (children automatically Y-sorted)
- Hero sprite
- NPC sprite
- Hero sprite
- NPC sprite