The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: cabose117 on August 31, 2007, 07:43:29 am

Title: Are Character name layers possible?
Post by: cabose117 on August 31, 2007, 07:43:29 am
I'm going for a SSBM style screenpack, and I seem to have hit a road block. I'm trying to get the name of a character to display over a picture which is over the character's picture. I have tried everything I know of to get the name of the character to display on another layer. Am I forgetting a useful code? Here is what I have do far for it:

;Name
p1.name.offset = 60,216               
p1.name.font = 4,3,0            
p2.name.offset = 260,216
p2.name.font = 4,4,0

I don't know what to do with the fonts in order for them to display over the 1PNameBox image, but here's what I did for the picture behind the Character's.

[SelectBG 1PFaceBox]
type = normal
spriteno = 101,0
start = -160,0
mask = 1
layerno = 0

[SelectBG 1PNameBox]
type = normal
spriteno = 101,4
start = -160,0
mask = 1
layerno = 1
Title: Re: Are Character name layers possible?
Post by: Tony 3rd on August 31, 2007, 07:46:42 am
IINM, a line like this:

p1.name.layerno = 2


should work...
Title: Re: Are Character name layers possible?
Post by: cabose117 on September 01, 2007, 02:02:44 am
I tried that. It didn't work. Doesn't anyone know if there's a way to put text on another layer?
Title: Re: Are Character name layers possible?
Post by: Tony 3rd on September 01, 2007, 02:19:05 am
I tried that. It didn't work. Doesn't anyone know if there's a way to put text on another layer?

okay... the line definetely works. i've just tested it.


but i think i know what your problem is. you must have assigned EVERY PART OF THE LIFEBAR to layerno=2. if this happened, than the sprites will on top.


this is how layerno works:

0 = behind the players

1 = in front of the players, behind the foreground.

2 = on topo of everything.


assign the lifebars to layerno=0 and the fonts to layerno = 1. this way your screenpack will not clash with winscreens and other character effects.
Title: Re: Are Character name layers possible?
Post by: cabose117 on September 01, 2007, 05:30:56 pm
It's not when I'm fighting in the game, just on the Character select screen.