The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Code Library => Topic started by: Human on July 03, 2012, 07:05:17 pm

Title: Center Camera at player when he wins
Post by: Human on July 03, 2012, 07:05:17 pm
I bet all of you were annoyed when your characters winpose was covered by edge of screen, that didnt looked attractive and ussualy Knock Out ends with both characters in corners, but I found easiest way to overcome this problem, to overdrives add:
Code:
[State -2, ScreenBound]
type = screenbound
trigger1 = stateno = 5150
value = 0
movecamera = 0,0
So if opponent ends up in lie dead state:

(http://i.imgur.com/ozvL5.png)
Opponent is behind corner on left, if not my piece of code, they both would be covered by edges of screen.

So if you make project like me you can easily implement it to all your characters, yay!  :sugoi:
Title: Re: Center Camera at player when he wins
Post by: adriano gt on August 03, 2012, 04:37:31 am
StateDef in which, I must put this code?

thank you...
Title: Re: Center Camera at player when he wins
Post by: Cyanide on August 03, 2012, 04:42:55 am
That's your opponent. This will not force the camera to focus on the winning player when they win. It will force it to the winning player when this code is in the loser.

Place it in the common1.cns inside your data folder for semi-global fix.

And this is not a questions forum. If you have a bug with the code mentioned, post it. If you have a problem implementing, ask in the dev help forum
Title: Re: Center Camera at player when he wins
Post by: Davod Sirloin on August 17, 2012, 04:46:44 pm
I would like to add to this topic, the effect is a lot snazzier when the stage is edited as such:

Change the follow parameters of the stage camera to 0 tension (follow the characters pixel perfect).  I'll post the exact parameters when I get home and can pull them directly from a DEF.

Proof of concept:
http://www.youtube.com/watch?v=3R4apRdCDjM#t=1m18s
Title: Re: Center Camera at player when he wins
Post by: Markpachi on August 17, 2012, 06:47:55 pm
Cool! Thanks for the share aokmaniac! :yippi:
Title: Re: Center Camera at player when he wins
Post by: adriano gt on September 07, 2012, 06:12:00 pm
I would like to add to this topic, the effect is a lot snazzier when the stage is edited as such:

Change the follow parameters of the stage camera to 0 tension (follow the characters pixel perfect).  I'll post the exact parameters when I get home and can pull them directly from a DEF.

Proof of concept:
http://www.youtube.com/watch?v=3R4apRdCDjM#t=1m18s

And then, my friend? could you post?
thank you very much