The Mugen Fighters Guild

M.U.G.E.N Central => M.U.G.E.N Discussion => Topic started by: Mazemerald. on March 20, 2019, 03:16:41 pm

Title: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Mazemerald. on March 20, 2019, 03:16:41 pm
I had thought about why Mugen engine is not able to read animated portraits using a standard configuration where you create an animation inside the char.sff and it's read easily on select screen.

;Big portraits
p1.face.spr = 9000,1      ;Do not change from 9000,1
p1.face.offset = 18,13    ;Position to put big portrait
p1.face.scale = 1,1
p1.face.facing = 1

Why is it not possible?

;Big portraits
p1.face.anim = 9001     ; found inside the char.sff
p1.face.offset = 18,13   
p1.face.scale = 1,1
p1.face.facing = 1

[Begin Action 9001] ; animated portrait here
9001,0,0,0,5
9001,1,0,0,5
9001,2,0,0,5
9001,3,0,0,5
9001,4,0,0,5
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Bad Mr. Basara on March 20, 2019, 03:44:04 pm
I think because this belongs more to this thread (http://mugenguild.com/forum/topics/hardcoded-things-mugen-178519.0.html) than here ::)
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Foobs on March 20, 2019, 05:13:27 pm
Because Elecbyte never really gave a shit about stage making, and cared even less about add-ons.
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: O Ilusionista on March 20, 2019, 06:30:41 pm
Because Elecbyte never really gave a shit about stage making, and cared even less about add-ons.

This.

If you are making a close game/full game, you can use the portraits as explods or helpers.
This is what I am using on this project - the lifebars and portraits are hard coded into the characters
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Bastard Mami on March 20, 2019, 09:27:45 pm
The ones of us who work in the software industry have a lot of fun trying to figure out how mugen was coded/the source code, by how certain things that should be really easy to implement took elecbyte ages to do so (or they never did).
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Mazemerald. on March 21, 2019, 05:02:11 am
Because Elecbyte never really gave a shit about stage making, and cared even less about add-ons.

This.

If you are making a close game/full game, you can use the portraits as explods or helpers.
This is what I am using on this project - the lifebars and portraits are hard coded into the characters
[youtube]https://www.youtube.com/watch?v=WANinauZxT0[/youtube]

It´s genial... but i haven't idea that was possible, do you have a tutorial explaining about the use of explods or helpers to do it?
i will donwload the game to see how you do it. thanks!!!
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: O Ilusionista on March 21, 2019, 05:38:02 pm
I am out of home right now, but there is a code inside every character for it.
The code will scale the lifebar graphics, like the lifebar itself and the powerbar, based on how great the life and power values are.

I've used the same method on another game:


But on that Mega Man game, it works vertically. And notice that the portraits REACTS from the attacks too.

Also, on this Mega Man game, we have animated portraits on select screen.
This is made by using a trick - the animations are in fact the cell animation from the screenpack, which has the size of the whole screen and has no space betweem each frame.
Its kinda annoying to do - you have to make an image with all characters - but the result is pretty cool.
Title: Re: WHY DON'T ANIMATED PORTRAITS WORK LIKE THAT?
Post by: Fausto Mugen on March 22, 2019, 04:58:05 pm
Today I tried this with mugen 1.0 lifebar and apparently it works, at least for single mode.

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