YesNoOk
avatar

Zoom control 1.1  (Read 20564 times)

Started by -Extasis-, October 19, 2013, 01:37:49 am
Share this topic:
Zoom control 1.1
New #1  October 19, 2013, 01:37:49 am
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
I hope this is my method able to help them with this in their creations

Code:
;Sistem Control zoom
[State -2,              Helper]
type                    = Helper
triggerall              = id=56
triggerall              = Numhelper(1010)=0
trigger1                = 1
helpertype              = normal
name                    = "Zoom Derecha"
ID                      = 1010
stateno                 = 1010
pos                     = 0,0
postype                 = p1
ignorehitpause          = 1
persistent              = 0

[State -2,              Helper]
type                    = Helper
triggerall              = id=56
triggerall              = Numhelper(1011)=0
trigger1                = 1
helpertype              = normal
name                    = "Zoom izquierda"
ID                      = 1011
stateno                 = 1011
pos                     = 0,0
postype                 = p1
ignorehitpause          = 1
persistent              = 0

states

Code:
[Statedef 1010,         State 1010]
type                    = S
movetype                = I
physics                 = N
anim                    = 5400 :anim empy

;---------------------------------------------------------------------------------------------------------------------
;intro (effect zoom for intro)
[State 1010,            VarSet] ;this identifies that motion apply
type                    = VarSet
triggerall              = fvar(1)=0
trigger1                = Root,Var(50)=1
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=1
trigger1                = fvar(1)=[1,21] ;time to used for zooming
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=1
trigger1                = fvar(1)=[1,21];value of zoom
fv                      = 2
value                   = ifelse((fvar(1)=[1,6]),4,ifelse((fvar(1)=[6,11]),2,ifelse((fvar(1)=[11,21]),1,0)))
ignorehitpause          = 1

;---------------------------------------------------------------------------------
[State 1010,            PosSet]
type                    = PosSet;formula
trigger1                = 1
x                       = (-140+fvar(2))+Camerapos X-Playerid(57),Camerapos X
ignorehitpause          = 1

[State 1010,            ScreenBound]
type                    = ScreenBound
trigger1                = 1
value                   = 1
movecamera              = 1,1
ignorehitpause          = 1

for 1011 is exactly the same only
in the posset used this
instead of adding, subtracting
Code:
[State 1011,            PosSet]
type                    = PosSet
trigger1                = 1
x                       = (140-fvar(2))+Camerapos X-Playerid(57),Camerapos X
ignorehitpause          = 1

to activate the movement

Code:
[State 0, VarSet]
type = VarSet
triggerall = var(50)=0
trigger1 = !time
v = 50
value = 1

for combos

State of hit,activation of the movement is to be executed

Code:
[State 210,             VarSet]
type                    = VarSet
trigger1                = movehit=1
v                       = 50
value                   = 2
ignorehitpause          = 1
persistent              = 0

scrlts for helpers

Code:
;---------------------------------------------------------------------------------------------------------------------
;Golpe 210

[State 1010,            VarSet]
type                    = VarSet
triggerall              = fvar(1)=22 ;Initial size value, this is defined by the intro
trigger1                = Root,Var(50)=2;Var 50 = 2 motion Activated
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=2
trigger1                = fvar(1)=[1,9];time to use
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=2
trigger1                = fvar(1)=[1,9];zoom value using time
fv                      = 2
value                   = 2
ignorehitpause          = 1

[State 1010,            VarSet]
type                    = VarSet;to ensure the correct value for the next combo and can return to normal zoom
triggerall              = Root,var(50)=2
trigger1                = playerid(56),anim=220&&playerid(56),time=[0,16]
fv                      = 3
value                   = ((64-fvar(2))/8)

[State 1010,            VarSet]
type                    = VarSet
triggerall              = Root,Var(50)=2
trigger1                = fvar(1)=10
fv                      = 1
value                   = -30 ;Use negative time, so sctrls, if not intercalated in
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=2
trigger1                = fvar(1)=[-30,-2]; 28ticks equals time
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=2
trigger1                = fvar(1)=[-9,-2] ;zoom returm
fv                      = 2
value                   = -2
ignorehitpause          = 1

[State 1010,            VarSet]
type                    = VarSet;reset to value assigned by the intro
triggerall              = fvar(1)=-1
trigger1                = Root,Var(50)=-1
fv                      = 1
value                   = 22
ignorehitpause          = 1


next combo

need use new value for 50

Code:
[State 220,             VarSet]
type                    = VarSet
trigger1                = movehit=1
v                       = 50
value                   = 3
ignorehitpause          = 1
persistent              = 0

scrlts for helpers

Code:
;---------------------------------------------------------------------------------------------------------------------
;Golpe 220
[State 1010,            VarSet]
type                    = VarSet
triggerall              = fvar(1)=[-10,-1]: previous combo time
trigger1                = Root,Var(50)=3
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=[1,9] ; time
fv                      = 1
value                   = 1
ignorehitpause          = 2

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=[1,9];zoom value the fvar(3) Automatic assigns it
fv                      = 2
value                   = fvar(3);
ignorehitpause          = 1

[State 1010,            VarSet]
type                    = VarSet
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=10;reset for new time to use
fv                      = 1
value                   = -70
ignorehitpause          = 1

[State 1010,            VarSet];reset value of the formula fails
type                    = VarSet
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=-70
fv                      = 2
value                   = 64
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=[-70,-41];ticks negative, is -70,-41 really is 29 ticks
fv                      = 1
value                   = 1
ignorehitpause          = 1

[State 1010,            VarAdd]
type                    = VarAdd
triggerall              = Root,Var(50)=3
trigger1                = fvar(1)=[-47,-42]; zoom returm
fv                      = 2
value                   = -4
ignorehitpause          = 1

[State 1010,            VarSet]
type                    = VarSet;reset
triggerall              = fvar(1)=-40
trigger1                = Root,Var(50)=-1
fv                      = 1
value                   = 22
ignorehitpause          = 1

Reset


Code:
;reset var hits zoom
[State -2,              VarSet]
type                    = VarSet
triggerall              = var(50)=2||var(50)=3
trigger1                = helper(1010),Fvar(1)=-1&&var(50)=2
trigger2                = helper(1010),Fvar(1)=-40&&var(50)=3
v                       = 50
value                   = -1
ignorehitpause          = 1

For you like the zoom with pos Y
this

1010

Code:
(-140+fvar(2))+(Camerapos X+CameraPos Y)-Playerid(57),Camerapos X+PlayerId(57),CameraPos Y

1011

Code:
(140-fvar(2))+(Camerapos X-CameraPos Y)-Playerid(57),Camerapos X-PlayerId(57),CameraPos Y

you can control speed, dividing the camerapos Y

(Camerapos Y/2)

testing stage

https://mega.co.nz/#!Vl80DKjK!OLEw0me-HiFkECXFFcer-keH_adh412EDqqlgAIcxL8

honestly, I will not explain everything, explain what you actually need to use
you have to at least know, using variables, I not explain it to newbies
if they want to work for player 2 is the id 57,you can add


if you do your zoom system, & was based on mine, please mention credits, thanks to all

in action
http://www.youtube.com/watch?v=15hygNmVd9I
yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Last Edit: November 11, 2013, 05:12:40 pm by -Extasis-
Re: Zoom control 1.1 DrukenT method
#2  October 19, 2013, 07:29:54 pm
  • ******
Thank you for this! I'll be sure to use this in one of my wips.
Re: Zoom control 1.1 DrukenT method
#3  October 23, 2013, 01:21:41 am
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
Thank you for this! I'll be sure to use this in one of my wips.

of anything, good luck with your projects :like:


For you like the zoom with pos Y
this

1010

Code:
(-140+fvar(2))+(Camerapos X+CameraPos Y)-Playerid(57),Camerapos X+PlayerId(57),CameraPos Y

1011

Code:
(140-fvar(2))+(Camerapos X-CameraPos Y)-Playerid(57),Camerapos X-PlayerId(57),CameraPos Y

you can control speed, dividing the camerapos Y

(Camerapos Y/2)
yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Re: Zoom control 1.1 DrukenT method
#4  October 26, 2013, 06:30:33 am
  • ******
  • Video Game Veteran
  • Can you do it? SUREYOUCAN!
    • USA
    • gcnmario.free.fr
So..... What does this do exactly? Stages already have zoom in/out effects in 1.1 as long as the stage creator uses them. But is this supposed to zoom in or out towards a character during a super move or something?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Zoom control 1.1 DrukenT method
New #5  October 26, 2013, 03:01:06 pm
  • ******
Last Edit: September 01, 2014, 09:17:37 pm by Alex Sinigaglia
Re: Zoom control 1.1 DrukenT method
#6  October 26, 2013, 03:22:52 pm
  • ******
  • A living Mugen dinossaur :)
  • 23 years of Mugen O_o
    • Brazil
    • www.brazilmugenteam.com
I don't get it: What is controlling the zoom percentage? The camera Y?
Re: Zoom control 1.1 DrukenT method
#7  October 28, 2013, 12:34:37 am
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
So..... What does this do exactly? Stages already have zoom in/out effects in 1.1 as long as the stage creator uses them. But is this supposed to zoom in or out towards a character during a super move or something?

yes mario puchs, effects special, etc

but if you use your own knowledge can do many wonders with the

I don't get it: What is controlling the zoom percentage? The camera Y?

 variables active the movent, the posset is the value of the camera try the training stage that went up, anyway I upload a character with one puch zoom+intro

https://mega.co.nz/#!gw0W0QDQ!EgvBmmBU8W7Q7OhlrAg1GBt5044YcGHfhl6qVYahm_w

I happened to a simpler way of doing

will update soon
yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Last Edit: October 28, 2013, 06:58:31 am by -Extasis-
Re: Zoom control 1.1 DrukenT method
#8  November 03, 2013, 12:11:17 am
  • ****
  • Club -SyN- in my past life
    • USA
    • negative-edge.net
I actually made my own version earlier this year around April but this is really a feature thats better for full games rather than being used in mugen not to mention that both helpers has to be player type helpers that can cause facing issues for the enemy not to mention enemynear triggers are affected by this.

Anyway if the topic starter features version is anywhere like mines, like Alex said, it can b used for zoom in hyper pauses, ryu's shin shoryuken, etc without ppl having to use angle draw to emulate the effect and such but where my version stands out from this is that I have both zoom options activated in the stage def and the helpers prevent zooming in when players are close to each other at all times.

From what I see in the topic starters video is only one of the stages zoom option is activated and the zoom is really minor, not dynamic.

Anyway to each their own but its a start for global usage.

Re: Zoom control 1.1 DrukenT method
#9  November 03, 2013, 01:44:34 pm
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
I actually made my own version earlier this year around April but this is really a feature thats better for full games rather than being used in mugen not to mention that both helpers has to be player type helpers that can cause facing issues for the enemy not to mention enemynear triggers are affected by this.

Anyway if the topic starter features version is anywhere like mines, like Alex said, it can b used for zoom in hyper pauses, ryu's shin shoryuken, etc without ppl having to use angle draw to emulate the effect and such but where my version stands out from this is that I have both zoom options activated in the stage def and the helpers prevent zooming in when players are close to each other at all times.

From what I see in the topic starters video is only one of the stages zoom option is activated and the zoom is really minor, not dynamic.

Anyway to each their own but its a start for global usage.



First of all, thanks for commenting, expecting an answer from you or cyanide, which to me is one of the oldest
mostly because you are doing things how are you

actually I have almost two years, doing mugen, recently turned 7 weeks
and the truth is, that when I had more practice, I'm somewhat weak in mugen

so it's the only thing that occurred to me, but soon

I will someday easier, and develop something better, is only momentary, I did not want anyone win in this code xD
although I'm more projects, so maybe not overall develops implementing

I can use something global,and do not need to modify the p2 and I can do regarding damage
but really I'm not releasing chars, experiment and have fun for a while :D
yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Re: Zoom control 1.1 DrukenT method
#10  November 04, 2013, 02:01:37 pm
  • ****
  • Club -SyN- in my past life
    • USA
    • negative-edge.net
It's all good man. I love to see custom coding and what people come up with.

I wasn't trying to take your spotlight or anything but still its a step in the right direction.

Keep doing what you do, thats what makes mugen fun!