YesNoOk
avatar

Increasing air.velocity during juggle (Read 9713 times)

Started by Tekkenthusiast, May 26, 2017, 05:45:53 pm
Share this topic:
Increasing air.velocity during juggle
#1  May 26, 2017, 05:45:53 pm
  • *
    • USA
    • ronlacson1@yahoo.com
So I want MUGEN to increase air.velocity during juggle by the number of hits, for example if the opponent is hit in the air 5 times the air.velocity will be multiplied by 2 in the 2nd hit and in the 3rd hit the air.velocity will be multiplied by 3 and so on a good example of this mechanic are combos from tekken :D
"Come back when you're ready to fight!"
-Heihachi
Re: Increasing air.velocity during juggle
#2  May 26, 2017, 06:30:34 pm
  • *****
  • Shame on you!
    • USA
If you have a variable that monitors the hit count you can just multiply using the Var.
Otherwise, set up a combo count system, then use it to multiply.
There should be a few ways to do it in Tips & Tricks.
But something like
air.velocity = var(9)*-1.4,-3
should work fine.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Increasing air.velocity during juggle
#3  May 26, 2017, 06:41:16 pm
  • *
    • USA
    • ronlacson1@yahoo.com
If you have a variable that monitors the hit count you can just multiply using the Var.
Otherwise, set up a combo count system, then use it to multiply.
There should be a few ways to do it in Tips & Tricks.
But something like
air.velocity = var(9)*-1.4,-3
should work fine.

Hmm I should put a Velset in Var(9)? sorry I don't know how to use variables yet xD
"Come back when you're ready to fight!"
-Heihachi
Re: Increasing air.velocity during juggle
#4  May 26, 2017, 07:19:35 pm
  • *****
  • Shame on you!
    • USA
Var(X) will be the number of hits. So it just becomes a math problem that can change each time the question is run.
The question would be, How much Air.Velocity should be given?
So it'd be
air.velocity = 1*-1.4,-3
air.velocity = 2*-1.4,-3
air.velocity = 3*-1.4,-3
air.velocity = 4*-1.4,-3
air.velocity = 5*-1.4,-3
.... on and on.
depending on what hit the hitdef is run at.

Which then points out if you only use the var in the math problem, you may run into
air.velocity = 31*-1.4,-3
after a 31 hit combo
Which would send P2 sky-rocketing up. You'd want to make a check that if the var is over a value it maxes out.


Read up on vars in Mugen Class. I just made this post the other day about Vars
http://mugenguild.com/forum/msg.2351314
There's a few ways to understand them. You can think of them as little memory banks. What ever value you assign them is what they are.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Increasing air.velocity during juggle
#5  May 27, 2017, 05:38:33 am
  • *
    • USA
    • ronlacson1@yahoo.com
Var(X) will be the number of hits. So it just becomes a math problem that can change each time the question is run.
The question would be, How much Air.Velocity should be given?
So it'd be
air.velocity = 1*-1.4,-3
air.velocity = 2*-1.4,-3
air.velocity = 3*-1.4,-3
air.velocity = 4*-1.4,-3
air.velocity = 5*-1.4,-3
.... on and on.
depending on what hit the hitdef is run at.

Hmm so I'm gonna make a new statedef and put a varset on it? and add a helper state controller?
"Come back when you're ready to fight!"
-Heihachi
Re: Increasing air.velocity during juggle
#6  May 28, 2017, 09:28:36 am
  • *****
  • Shame on you!
    • USA
Did you look up a combo count system? Like some people use it to adjust a AttackMulSet so combos do less damage.
They usually rely on statedef -2.
I dont think you'll need a helper at all. Just Statedef -2 keeping track of how many hits, and the actual math equation in the hitdef.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Increasing air.velocity during juggle
#7  May 28, 2017, 06:39:32 pm
  • *
    • USA
    • ronlacson1@yahoo.com
Did you look up a combo count system? Like some people use it to adjust a AttackMulSet so combos do less damage.
They usually rely on statedef -2.

i used this in statedef -2
[State -2, Updated Hit Count]
type = VarAdd
trigger1 = !IsHelper
trigger1 = MoveHit = 1
trigger1 = !HitPauseTime
trigger1 = !(HitDefAttr = SCA, AT)
var(13) = 1

and

air.velocity = var(13)*-1.2,-2

something like that? sorry for being a noob xD
"Come back when you're ready to fight!"
-Heihachi
Re: Increasing air.velocity during juggle
#8  May 29, 2017, 02:56:28 am
  • *****
  • Shame on you!
    • USA
Looks about right. Dont forget to reset it to 0 when the combo's over.
Spoiler: This is what I use in my Ryu (click to see content)

Check to see if your value is being set when and why you want with the display to clipboard

[State -2, Clipboard]
type = DisplayToClipboard
trigger1 = 1
text = "Counter = %d"
params = Var(13)

Also, you're changing the X velocity, the Y is the Up and Down. You can adjust both if you want.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Increasing air.velocity during juggle
#9  May 30, 2017, 03:54:41 pm
  • *
    • USA
    • ronlacson1@yahoo.com
Looks about right. Dont forget to reset it to 0 when the combo's over.
Spoiler: This is what I use in my Ryu (click to see content)

Check to see if your value is being set when and why you want with the display to clipboard

[State -2, Clipboard]
type = DisplayToClipboard
trigger1 = 1
text = "Counter = %d"
params = Var(13)

Also, you're changing the X velocity, the Y is the Up and Down. You can adjust both if you want.

now akuma has tekken-style combos lol thanks for the help :D
"Come back when you're ready to fight!"
-Heihachi