Développement SNES > PVSnesLib English section

SOLVED - Background Priority Bit (Tiles With Priority in background)

(1/1)

faeldaniel:
Hello alekmaul,

I have this problem in my initial studies and whait becouse this is not important in moment, i soluvied all problems for my game but the only one persister, this Background Priority, i need with the background layer in mode 1:


--- Code: ---"Front" < BG3, BG2, SPRITES, BG1 > "Behind"
--- Fin du code ---

I control individual layers perfectly in VRAM, i developed my implementation for show dialog for texts in BG3 its it work very good because I have had problem with native consoleDrawText() in BG3.

My view structure is thus:

--- Code: ---<Front Screen>
BG3 -> Here Dialog texts (I need set bit priority for 1, default is 0)
BG2 -> Here will be for example, leaf of trees, to create depth effect for the sprite (I need set bit priority for 1, default is 0)
OBJ -> Are all sprites (The priority i set in 2 and working becouse is native in function OamSet)
BG1 -> Here all background for my map (the bit priority default is 0, so no need to do anything)
<Behind>
--- Fin du code ---

From what I read this is possible becouse i see in the official documentation as provided by Nintendo in the page 214, this point talk about this http://99.10.161.154/alcaro/docs/book1_text.pdf simply to set priorities so:

--- Code: ---BG3 -> priority 1
BG2 -> priority 1
OBJ -> priority 2
BG1 -> priority 0
--- Fin du code ---

I see too in No$sns in Vram Viewer in tabs individual BGs i see filder "Priority".

Talking with KungFuFurby he also commented that:

--- Citer ---This is how you get that type of arrangement (if I interpreted http://nocash.emubase.de/fullsnes.htm#snespictureprocessingunitppu 's background priority chart correctly)
--- Fin de citation ---

I need set this priority flag, this should be done with graphics (gfx2snes) converter correct?

faeldaniel:
Sorry  :-[ i did not read the documentation of gfx2snes, just use the parameter -mp (Convert the whole picture with high priority) and the graphic is convert with high priority.  ;D

alekmaul:
And sorry for the lack of reply, I was very busy last weeks :(.
Nice to see that you solved your problem.
Don't hesitate to query some new feature for gfx2snes !

faeldaniel:
 ;) thanks

Navigation

[0] Index des messages

Sortir du mode mobile