News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Best "flight" code?

Started by ShinZankuro, December 11, 2016, 04:06:37 PM

Previous topic - Next topic

ShinZankuro

As the title asks.

Thanks in advance :)
- Want to commission me for a artwork? Just come here
- Donations is welcome

Odb718

I have no clue what the title actually refers to?
When the announcer says "fight"?
AI?
vVv Gouken718 vVv SabreTooth718 vVv


ShinZankuro

I mean the "flying" feature, like Magneto's flying and, especially, Dr. Doom :)
- Want to commission me for a artwork? Just come here
- Donations is welcome

hatter

Why not just look at Kamekaze's code in his Doctor Doom? I'm quite certain a flying function is in there.
This is a generic forum signature.

ShinZankuro

Oh, I will give a look :D

Since Kamekaze works is closed source, I will credit him if I got something. Thanks man :D
- Want to commission me for a artwork? Just come here
- Donations is welcome

Cyanide

Good place to start. Depends what you mean by flight. There are a multitude of versions.

Basic flight which is a set velocity dependent on direction keys
veladd method which speeds you up and slows you down when the keys are released
Even looser velmul method which tends to make you continue in motion even after keys are released, no complete stop
Do you want height limits
Do you want the character to bob in place while stationary.
Do you want to get knocked out of it when hit
Do you want your moves to be the air versions, ground version or something special.


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.

ShinZankuro

Well, I mean to apply the MvC styled one of flight/flying.

In MvC games there's really a limit of height[not higher than the super jump], I'm searching a way to apply this on Beximus S-Jump code :)

- Want to commission me for a artwork? Just come here
- Donations is welcome

Odb718

Sorry I misread the title. I was very sleep deprived.

You'll just need to watch pos y in debug and super jump and pause at the top. Then you'll have your max pos y to allow. You'd just put that in statedef -2 as a check on your velset/veladd.
vVv Gouken718 vVv SabreTooth718 vVv