YesNoOk
avatar

Zooming/Center on a winner of a round (Read 18139 times)

Started by Tiger-Boy, February 18, 2023, 02:23:08 am
Share this topic:
Zooming/Center on a winner of a round
New #1  February 18, 2023, 02:23:08 am
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
I have noticed that some characters, when they win a round, they are zoomed/centered.



How do I manage to do this?

      Posted: February 19, 2023, 02:57:16 am

****UPDATE****

Thanks to XGargoyle for his advice;

I checked the Win Coding of one of the chars that when he wins, he is centered (Hugo). And I found this:
Spoiler, click to toggle visibilty

This coding is tied to another coding in the Helpers State File:
Spoiler, click to toggle visibilty

And this works! However, in some cases, the camera Zooms out, instead of staying in a normal zoom, or zoom in:



How do I manage for the camera to stay in Zoom, or zoom in when the char wins the round?
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Last Edit: September 16, 2023, 04:33:49 pm by Tiger-Boy
Re: Zooming/Center on a winner of a round
#2  March 07, 2023, 09:10:00 am
  • ****
The method you are using is create a invisible helper
and move it to the back of the screen, so the winter will look like centered.


there are 3 ways
1. most easy way (Loser need to do things)
the loser need to have the code when dead
set screenbound
camera follow xy to 0.

so the mugen will auto center the camera to the winner.



2. the way you are using,
winner create a invisible character walk to the back of the screen. so the camera will center at the winner
but stage will zoom out

3. zoom / camera helper
just like a super zoom. use on the winner.
need 1.1 or ikemen






Re: Zooming/Center on a winner of a round
#3  April 07, 2023, 03:40:58 am
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Spoiler, click to toggle visibilty

I just read this.

I believe the 1st option is the best.

Where do I find the screenbound option?
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Re: Zooming/Center on a winner of a round
#4  April 11, 2023, 05:09:19 pm
  • ****
Spoiler, click to toggle visibilty

I just read this.

I believe the 1st option is the best.

Where do I find the screenbound option?

all my character do this. you could download any of them to check the code
Re: Zooming/Center on a winner of a round
#5  April 14, 2023, 08:00:42 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Is this the code you are referring to:
Spoiler, click to toggle visibilty

This was in the System St file.
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Last Edit: April 14, 2023, 08:26:24 pm by Tiger-Boy
Re: Zooming/Center on a winner of a round
#6  April 17, 2023, 12:28:25 am
  • *
    • USA
Re: Zooming/Center on a winner of a round
#7  June 21, 2023, 10:46:14 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
I still haven't received a clear response for this isssue.

I am interested into know how to manage for the camera to zoom in center when the char wins the round,

In both MUGEN and Ikemen-Go.
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Re: Zooming/Center on a winner of a round
#8  June 22, 2023, 06:58:51 am
  • ****
Is this the code you are referring to:
Spoiler, click to toggle visibilty
No

it's here

;====================<K.O.>====================
[StateDef 5150]
type = L
movetype = H
physics = N
sprpriority = -3

[State 5150, ChangeAnim]
type = ChangeAnim
trigger1 = !Time
value = 5150

[State 5150, Screen]
type = ScreenBound
trigger1 = Anim != 171
value = 0



you can set the trigger1 to
trigger1 = 1
Re: Zooming/Center on a winner of a round
#9  June 24, 2023, 04:04:55 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
No

it's here

Spoiler, click to toggle visibilty
Thank you.
This is in the system.cns file, right?
Where should it be added? On each win animation?
Also, is this for MUGEN or IKEMEN?
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Re: Zooming/Center on a winner of a round
#10  June 24, 2023, 11:29:17 pm
  • ***
    • djjosehisterico@gmail.com
I use this code made by Darek lot's of years ago. It works with mugen or ikemen and it's really easy to add. First you need to copy this part in the statedef -2

;-------------------------------------------------------------
;ESTADO DEL HELPER QUE PERMITE MANDAR EL CHAR AL CENTRO DEL STAGE
;----------------------------------------------------------------------------------
[Statedef 89565656]
type = A
movetype = I
physics = N
anim = 90701;ANIMACION VACIA, CAMBIAR SI ES NECESARIO

; EL CHAR ESTA VIENDO A LA DERECHA Y SU POSICION EN PANTALLA ES MENOR A 151
[State 0, VelSet]
type = VelSet
trigger1 = root, facing =1 && root,screenpos X <151
x =-5
y = 0
ignorehitpause =1

; EL CHAR ESTA VIENDO A LA DERECHA Y SU POSICION EN PANTALLA ES MAYOR A 151
[State 0, VelSet]
type = VelSet
trigger1 = root, facing =1 && root,screenpos X >151
x =5
y = 0
ignorehitpause =1

; EL CHAR ESTA VIENDO A LA IZQUIERDA Y SU POSICION EN PANTALLA ES MENOR A 151
[State 0, VelSet]
type = VelSet
trigger1 = root, facing =-1 && root,screenpos X <151
x =5
y = 0
ignorehitpause =1

; EL CHAR ESTA VIENDO A LA IZQUIERDA Y SU POSICION EN PANTALLA ES MENOR A 151
[State 0, VelSet]
type = VelSet
trigger1 = root, facing =-1 && root,screenpos X >151
x =-5
y = 0
ignorehitpause =1

; DETIENE EL HELPER CUANDO EL CHAR HA LLEGADO AL CENTRO DE LA PANTALLA
[State 0, VelSet]
type = VelSet
trigger1 = root,screenpos X= [148,152]
x = 0
y = 0
ignorehitpause =1

; PERMITE EL MOVIMIENTO DE LA CAMARA
[State 0, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 1,1
ignorehitpause =1

; SE DESTRUYE SI EL CHAR NO ESTA EN EL ROUNDSTATE 4
[State 0, DestroySelf]
type = DestroySelf
trigger1 = roundstate!=4

[Statedef -2]

[State 0, ScreenBound]
type = ScreenBound
trigger1 = !Alive
trigger1=enemy,numhelper(89565656)
value = 0
movecamera = 0,0

;------------------------------------------------------------------------
;HELPER PARA CENTRAR EL CHAR DURANTE LA WINPOSE
;------------------------------------------------------------------------
[State 0, Helper]
type = Helper
triggerall= Win && Roundstate= 4 ;Solo se activa durante el roundstate 4 y si el char ha ganado el combate
triggerall = TeamMode =single ||TeamMode =turns
trigger1= !Numhelper(89565656) ;No se ha activado el helper
helpertype = normal
name = "89565656"
ID = 89565656
stateno = 89565656 ;Estado del helper
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0

And then you need to copy this lines at the end of the .air file

;
[Begin Action 90701]
-1,0, 0,0, -1,

The code it's made by Darek not by me and it's only for center the camera at the end of the round not zoom but it's posible to implement.
Re: Zooming/Center on a winner of a round
#11  June 26, 2023, 05:48:55 am
  • ****
No

it's here

Spoiler, click to toggle visibilty
Thank you.
This is in the system.cns file, right?
Where should it be added? On each win animation?
Also, is this for MUGEN or IKEMEN?


No this is for KO / Loser
when Loser is on ground, use the screenbound to tell camera don't foucs on him/her.

so must add into loser's KO state 5150
Re: Zooming/Center on a winner of a round
#12  July 12, 2023, 09:24:05 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
I use this code made by Darek lot's of years ago. It works with mugen or ikemen and it's really easy to add. First you need to copy this part in the statedef -2
Spoiler, click to toggle visibilty
The code it's made by Darek not by me and it's only for center the camera at the end of the round not zoom but it's posible to implement.

Thank you. However, when I tried it, it causes Cammy to create clones of herself. One making the winning pose, and the other in her fighting stance.
Maybe the code is old?

Spoiler, click to toggle visibilty

No this is for KO / Loser
when Loser is on ground, use the screenbound to tell camera don't foucs on him/her.

so must add into loser's KO state 5150


Ok, Thank you. I will check on it.

     Posted: September 16, 2023, 04:33:31 pm
In the end, I never figured how to achieve a zooming option when a char wins the fight, but only in MUGEN.

In IKEMEN-GO, I used the advised option from Foobs, and it works perfectly.
https://mugenguild.com/forum/topics/extended-intro-outro-functions-updated-20221228-196849.0.html

Since I don't see myself using MUGEN as much as IKEMEN, I believe the issue is practically solved.

Thanks you all who gave their help.  :bjugoi:
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE