YesNoOk
avatar

[SOLVED] How to change the speed of a roll/evade, but keep the length? (Read 278 times)

Started by Krizalid99v2, May 27, 2011, 09:05:29 am
Share this topic:
[SOLVED] How to change the speed of a roll/evade, but keep the length?
#1  May 27, 2011, 09:05:29 am
  • **
  • You must defeat Sheng Long to stand a chance
My character has an evade/roll forward move, where it obviously goes though/past the opponent when used. It's almost like Kyo's evade/roll in KOF'99.

So far I have used VelSet to do this, as shown below:

Code:
[State 230, 4]
type = VelSet
trigger1 = Time = 2
x = 15

^ that moves my character forward, at quite a fast speed.

However I want to make it so that she rolls/evades forward slower - but retaining the same length/distance of the roll (x = 15).

If I set the x = to a smaller value the character rolls too short a distance.

Can anyone help? Thanks in advance.
Last Edit: May 28, 2011, 06:02:06 am by Krizalid99v2
Re: How to change the speed of a roll/evade, but keep the length?
#2  May 27, 2011, 09:17:36 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Distance over time. If you need them to roll slower but travel the same distance you need to extend the amount of time they're allowed to roll for. This means extending the animation.

There are not a lot of options.


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: How to change the speed of a roll/evade, but keep the length?
#3  May 27, 2011, 05:45:06 pm
  • **
  • You must defeat Sheng Long to stand a chance
Distance over time. If you need them to roll slower but travel the same distance you need to extend the amount of time they're allowed to roll for. This means extending the animation.

There are not a lot of options.

I see. Any rough idea of how to code this?

When I change the trigger1 = Time = to a higher value, the character just pauses for longer before executing the evade/roll.

The character's roll animation is long enough to roll the distance it wants.

What extra State Controller(s) would I need?

Thanks in advance.
Re: How to change the speed of a roll/evade, but keep the length?
#4  May 27, 2011, 05:52:13 pm
  • ****
  • HAHAHAHAHAHAHAHA
    • Chile
How many frames last the anim? How many frames the character actually moves?
Re: How to change the speed of a roll/evade, but keep the length?
#5  May 27, 2011, 11:56:47 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I meant the time of the anim.

Let us assume a nice value. You wish to travel 90 pixels (yes i know that's small) and your fast version has a velocity of 9. It will take 10 ticks to travel that distance so your animation is at least 10 ticks long to account for it.

If you wish to travel SLOWER say, a velocity of 3. That will take 30 ticks, so your animation must be at least 30 ticks long.


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: How to change the speed of a roll/evade, but keep the length?
#6  May 28, 2011, 02:57:40 am
  • **
  • You must defeat Sheng Long to stand a chance
How many frames last the anim? How many frames the character actually moves?

Cyanide said:
If you wish to travel SLOWER say, a velocity of 3. That will take 30 ticks, so your animation must be at least 30 ticks long.

Guys, this is my character's roll/evade anim:

Code:
;Evade
[Begin Action 230]
11,0, 0,0, 4
230,0, 0,0, 4
230,1, 0,0, 4
230,2, 0,0, 4
230,3, 0,0, 4
230,1, 22,0, 4,H
230,0, 29,0, 4,H
11,0, 0,0, 4,H

So that's 8 frames of animation, and 32 ticks altogether.

If I lower the x = velocity to anything under 15 (from the State in my original post), the distance the character travels is not long enough - the animation still continues even when the character has stopped moving forward.

So maybe there's a controller that can specify the distance?

Remember I'm working on the character using Mugen 1.0.

Thanks in advance.
Re: How to change the speed of a roll/evade, but keep the length?
#7  May 28, 2011, 03:04:48 am
  • ***
  • I'm watching you.
lower the anim ticks like cyanide said

e.g

;Evade
[Begin Action 230]
11,0, 0,0, 2
230,0, 0,0, 2
230,1, 0,0, 2
230,2, 0,0, 2
230,3, 0,0, 2
230,1, 22,0, 2,H
230,0, 29,0, 2,H
11,0, 0,0, 2,H

just play around with it till you get the right timing.
★★★
Admin in disguise

Spoiler, click to toggle visibilty
Re: How to change the speed of a roll/evade, but keep the length?
#8  May 28, 2011, 03:11:07 am
  • ****
  • HAHAHAHAHAHAHAHA
    • Chile
No, it's the inverse, increase your anim duration.

Code:
[State 230, 4]
type = VelSet
trigger1 = Time = 2
x = 15

That's your actually code, and your animation last 32 ticks. I assume it moves until the last frame. But the trigger it's time = 2, so I assume you're moving during 31 ticks.

31 ticks and you move with a vel of 15 at start. I would like to know if you are using S or N as the physics of the move.

If you want to decrease the vel value, then, increase the animation time. For example, you decrease the vel by 3, increase the animation time by 3:

15/3 = 5
31*3 = 91

For that, I think you need to use physics = N. Normal roll velocites are like 3 - 6, not 15.
Re: How to change the speed of a roll/evade, but keep the length?
#9  May 28, 2011, 06:01:30 am
  • **
  • You must defeat Sheng Long to stand a chance
For that, I think you need to use physics = N. Normal roll velocites are like 3 - 6, not 15.

Nice one, changing the physics = from S to N instead made all the difference. Many thanks.

And also thanks to everyone else in this thread.