YesNoOk
avatar

Center Camera at player when he wins (Read 9970 times)

Started by Human, July 03, 2012, 07:05:17 pm
Share this topic:
Center Camera at player when he wins
#1  July 03, 2012, 07:05:17 pm
  • ****
    • Japan
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:


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:
Re: Center Camera at player when he wins
#2  August 03, 2012, 04:37:31 am
  • ****
    • Brazil
    • Skype - adriano_gt2005@hotmail.com
    • www.facebook.com/groups/mortalkombatmugenkommunity/
StateDef in which, I must put this code?

thank you...
Re: Center Camera at player when he wins
#3  August 03, 2012, 04:42:55 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Center Camera at player when he wins
#4  August 17, 2012, 04:46:44 pm
  • ******
  • Just a butcher on a mission.
    • www.justnopoint.com/lbends
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
Re: Center Camera at player when he wins
#5  August 17, 2012, 06:47:55 pm
  • *****
  • Fuck you.
    • Philippines
    • Skype - Markpachi
    • mugenguild.com/forum/topics/-opensource-mps-psds-stages-and-resources-please-put-them-good-use-172321.0.html
Cool! Thanks for the share aokmaniac! :yippi:

Rest in peace, Tamez. Thank you for everything.
Re: Center Camera at player when he wins
#6  September 07, 2012, 06:12:00 pm
  • ****
    • Brazil
    • Skype - adriano_gt2005@hotmail.com
    • www.facebook.com/groups/mortalkombatmugenkommunity/