The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: germanvasquez on December 08, 2017, 06:56:54 pm

Title: LIFEBAR FACE SPRITE PRIORITY
Post by: germanvasquez on December 08, 2017, 06:56:54 pm
Hi,

In the image below Ken is both P3 Y P4,

I want to set his face to be drawn above p1 and p2 faces but without set their faces in layer 1 because when doing it,

p3 and p4 faces are drawn above hyper backgrounds and such ,

Is there a way to do it ?

thanks in advance mugeners!!!

(https://i.imgur.com/Y41a5kx.png)
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: mr_bourrepalestick on December 15, 2017, 08:54:15 pm
I'm not sure about this one, but have you tried to define P3's and P4's lines  before P1 and P2 ?
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Ramon Garcia on February 05, 2018, 01:15:12 am
Hi,

In the image below Ken is both P3 Y P4,

I want to set his face to be drawn above p1 and p2 faces but without set their faces in layer 1 because when doing it,

p3 and p4 faces are drawn above hyper backgrounds and such ,

Is there a way to do it ?

thanks in advance mugeners!!!

(https://i.imgur.com/Y41a5kx.png)



germanvasquez I KNOW DO THIS FOR YOU BUT I WILL NEED THE LINK OF THIS LIFEBAR FOR I FIX THIS, AND AFTER I WILL SAY HOW TO DO THIS, AND UPLOAD THE LIFEBAR FIXED OK.
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Prime SC on February 05, 2018, 01:25:32 am
i just started working with lifebars and stuff i just figured it out myself, under [face] you have to set p3.face.layerno = 1 and p4.face.layerno = 1 and have player 1 and 2 face.layerno = 0
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Ramon Garcia on February 05, 2018, 01:28:43 am
i just started working with lifebars and stuff i just figured it out myself, under [face] you have to set p3.face.layerno = 1 and p4.face.layerno = 1 and have player 1 and 2 face.layerno = 0

yes germanvasquez is this what you have to do, but if possible share the link of this lifebar with me because i like :)

And if you not get do the change send the link too that i fix it for you ok.
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Slayer. on February 05, 2018, 03:02:56 am
No, there is no way to do such a thing without use values higher than 0 for layerno.
However judging the lifebar design from the screenshots, you could use the upper bars for the 3rd and 4nd players, and the lower ones for 1st and 2nd players. So you can reverse the values of the portraits, using p1 values for the p3 and vice versa. The same goes to p2 and p4.
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Prime SC on February 05, 2018, 03:13:05 am
how no? i literally just did what i said and it worked.
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Slayer. on February 05, 2018, 03:56:26 am
Man...  I think you didn't pay attetion to the matter. It's about make it work without using overlapping (layerno = 1 or higher).

I want to set his face to be drawn above p1 and p2 faces but without set their faces in layer 1 because when doing it,
p3 and p4 faces are drawn above hyper backgrounds and such , (...)

So you answered just the way he is avoiding using:
i just started working with lifebars and stuff i just figured it out myself, under [face] you have to set p3.face.layerno = 1 and p4.face.layerno = 1 and have player 1 and 2 face.layerno = 0
In short, in this way the portraits will overlap everything, from the characters to the hyper background and other things, again - the way he stated he did not want to. Unless you know some other way.



Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Prime SC on February 05, 2018, 04:01:36 am
awe yeah your right my bad.
Title: Re: LIFEBAR FACE SPRITE PRIORITY
Post by: Slayer. on February 05, 2018, 04:11:35 am
No problem.
Spoiler, click to toggle visibilty