YesNoOk
avatar

How to ChangeState while falling without losing momentum/velocity? (Read 206 times)

Started by Kolossoni, March 26, 2019, 09:14:16 am
Share this topic:
How to ChangeState while falling without losing momentum/velocity?
#1  March 26, 2019, 09:14:16 am
  • The Awakened
  • Interesting... Wanna Try?
    • South Korea
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?  :???:

ink

Re: How to ChangeState while falling without losing momentum/velocity?
#2  March 26, 2019, 04:43:01 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
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
Re: How to ChangeState while falling without losing momentum/velocity?
#3  March 30, 2019, 09:08:53 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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


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.