Page 1 of 1

How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 1:57 pm
by Human_Goomba
Image

I've tried changing the Z-layers of clouds to Foreground and foreground-2, but both didnt work. In the editor, the clouds appear in front, which is intended, but in the level tester, the clouds appear behind. I also tried changing Z-offset. What should I do?

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 2:00 pm
by Enjl
if you're using smbx2, make a txt file, name it like the image file and put priority=-64 in there. anything greater than 65 will work.
References:
https://wohlsoft.ru/pgewiki/LunaLua_Render_Priority
https://docs.google.com/document/d/1uOd ... 1jmm92li57

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 2:02 pm
by Human_Goomba
Enjl wrote:
Tue Jun 30, 2020 2:00 pm
if you're using smbx2, make a txt file, name it like the image file and put priority=-64 in there. anything greater than 65 will work.
References:
https://wohlsoft.ru/pgewiki/LunaLua_Render_Priority
https://docs.google.com/document/d/1uOd ... 1jmm92li57
By img file name, do you mean something like bgo-161 ?

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 2:35 pm
by Enjl
Human_Goomba wrote:
Tue Jun 30, 2020 2:02 pm
Enjl wrote:
Tue Jun 30, 2020 2:00 pm
if you're using smbx2, make a txt file, name it like the image file and put priority=-64 in there. anything greater than 65 will work.
References:
https://wohlsoft.ru/pgewiki/LunaLua_Render_Priority
https://docs.google.com/document/d/1uOd ... 1jmm92li57
By img file name, do you mean something like bgo-161 ?
The literal name of the image whose priority you're trying to change. When in doubt, you can always look into the data/graphics folder. In this particular example, the txt would be called background-161.txt

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 3:09 pm
by Human_Goomba
Enjl wrote:
Tue Jun 30, 2020 2:35 pm
Human_Goomba wrote:
Tue Jun 30, 2020 2:02 pm
Enjl wrote:
Tue Jun 30, 2020 2:00 pm
if you're using smbx2, make a txt file, name it like the image file and put priority=-64 in there. anything greater than 65 will work.
References:
https://wohlsoft.ru/pgewiki/LunaLua_Render_Priority
https://docs.google.com/document/d/1uOd ... 1jmm92li57
By img file name, do you mean something like bgo-161 ?
The literal name of the image whose priority you're trying to change. When in doubt, you can always look into the data/graphics folder. In this particular example, the txt would be called background-161.txt
it worked! Thanks a lot!

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 6:27 pm
by CJ_RLushi
I really wonder why are that z-priority and z-offset things in SMBX2s PGE, this really confuses people

Re: How do I make BGO's appear in front of blocks

Posted: Tue Jun 30, 2020 8:21 pm
by Hoeloe
They aren't? I'm pretty sure those were hidden from SMBX2's build of PGE.

Re: How do I make BGO's appear in front of blocks

Posted: Wed Jul 01, 2020 2:59 am
by cato
CJ_RLushi wrote:
Tue Jun 30, 2020 6:27 pm
I really wonder why are that z-priority and z-offset things in SMBX2s PGE, this really confuses people
I think they only work for background to background. A BGO marked with foreground in Z-layer will be in front of another BGO marked with background.

Re: How do I make BGO's appear in front of blocks

Posted: Wed Jul 01, 2020 11:58 pm
by Hoeloe
Priority settings for SMBX2 are done with background.txt files. I believe all that setting does is shift the order in which the BGO is saved into the file, and it's absolutely not reliable.