You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that if the HUD is on BG2, then any tiles on BG1 with high priority set, get shown over top of the HUD.
Therefore, a basic RPG-style game cannot currently be created with the following features:
Using map engine with both tiles that can be walked on (priority 0) and tiles you can go behind (priority 1)
A static HUD layer with 16 colors per tile and also include dialog background graphics
Text to be displayed over top of the dialog background graphic
The only current way around this and still use the map engine is to use BG3 in high priority for both the HUD and text, but then you are restricted to 3 colors per tile. Which in my case will not be ideal.
Secondary Problem
Currently, if we try to set the map engine to use BG2 it works visually, but the map scrolling ends up still scrolling BG1 instead of BG2 so the wrong background gets scrolled when the player moves.
Solution:
Provide the option to allow the map engine to work on BG2. It would be good to have a flag specified to allow either the choosing of BG1 or BG2. Not sure if this would be better to be specified in Tiled or in .c code.
The text was updated successfully, but these errors were encountered:
Changing the code does position them correctly so they look correct. However, when the player moves, it is the HUD layer that scrolls (BG1) instead of the map layer (BG2).
Current problem:
Currently, the map engine works only with BG1. This causes issues when trying to use BG2 for a HUD because of the following layered order:
BG1 - Priority 1
BG2 - Priority 1
BG1 - Priority 0
BG2 - Priority 0
The problem is that if the HUD is on BG2, then any tiles on BG1 with high priority set, get shown over top of the HUD.
Therefore, a basic RPG-style game cannot currently be created with the following features:
The only current way around this and still use the map engine is to use BG3 in high priority for both the HUD and text, but then you are restricted to 3 colors per tile. Which in my case will not be ideal.
Secondary Problem
Currently, if we try to set the map engine to use BG2 it works visually, but the map scrolling ends up still scrolling BG1 instead of BG2 so the wrong background gets scrolled when the player moves.
Solution:
Provide the option to allow the map engine to work on BG2. It would be good to have a flag specified to allow either the choosing of BG1 or BG2. Not sure if this would be better to be specified in Tiled or in .c code.
The text was updated successfully, but these errors were encountered: