How To

How do I use priority?

1

CubicleHead 2021-05-03 14:54

I was trying to make a two part bg using priority but it seems to only show the bg on top
How do I use the PRIO command
Note: since the program I'm trying to do it in is rather long I tried remaking what I'm trying to do in a shorter program


was8bit 2021-05-03 15:38 (Edited)

Unless i am wrong...

Bg 0 will ALWAYS be above bg 1

What prioriy affects is how the SPRITES will be layered with the BACKGROUND...

Timo demonstrates this here...

https://lowresnx.inutilis.com/topic.php?id=11

Notice how mario seems to walk in front of some trees and flowers, and walks behind other trees and flowers...


Timo 2021-05-03 15:50

PRIO affects the two BGs, too. From the manual:

Each sprite and background cell has an attribute called "priority". By setting it, the cell or sprite will appear on a higher display layer. Actually there are 6 layers, from back to front:

Background 1 (BG 1) - prio 0
Background 0 (BG 0) - prio 0
Sprites - prio 0
Background 1 (BG 1) - prio 1
Background 0 (BG 0) - prio 1
Sprites - prio 1


CubicleHead 2021-05-03 16:19

So how come my demo I posted above doesn't work?


Timo 2021-05-03 16:51

Ah I see: The PRIO command doesn't affect BG COPY, because the BG data from the Gfx Designer already has prio information for each cell. You have to edit it in the Gfx Designer.


CubicleHead 2021-05-03 18:29

Ohhhhh thx :)


was8bit 2021-05-03 18:51

Ah, thanks Timo for the correction... as i haven't yet put PRIO into full use, i am abit rusty on the info....


Log in to reply.