The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: Kolossoni on March 26, 2019, 09:14:16 am

Title: How to ChangeState while falling without losing momentum/velocity?
Post by: Kolossoni on March 26, 2019, 09:14:16 am
I'd like to make a KOF'XIII Mature's Despair-style attack where when an input is put during fall/jump the state will change in addition to a new animation.
However, when I tried coding it, it was really ambiguous to setting "velset" on the new state cuz it was completely new.

Any tricks/ideas on making this happen?  :???:
Title: Re: How to ChangeState while falling without losing momentum/velocity?
Post by: inktrebuchet on March 26, 2019, 04:43:01 pm
I thought it would just transfer over if not set in the new state.

Maybe something like this would work?
[Statedef ###]
type = ?
physics = ?
movetype = ?
ctrl = ?
anim = ###
velset = vel x, vel y
Title: Re: How to ChangeState while falling without losing momentum/velocity?
Post by: Cyanide on March 30, 2019, 09:08:53 pm
Just leave the velset out. It doesn't need to be there. You'll maintain vel and as long as physics are N you just keep going