there is possible to do a changeanim when Y is not 0?If it is please tell me how, how cos i dont manage to do it (for example when i do shun goku satsu in the air i want to anim change from 4001 wich is stand grab anim to 4010 wich is his air grab anim for shun goku)
It'll work, but it's copy paste code and he will just go "Oh good" without bothering to work out WHY it works.4001 is self explanatory. By using (statetype = A) within brackets like that condenses the function and mugen reads it as a boolean or TRUE/FALSE value. When you are statetype = A you will be jumping, therefore the particular piece of code is true, or 1. Based on the rules of how you deal with an extended equation like that, it will be multplied by 9 before being added to 4001.So you have Code: anim = 4001+(1)*9 = 4001+9 if you're in the air orCode: anim = 4001+(0)*9 = 4001 if you're not.Alternatively, just use 2 changeanims with pos Y!= 0 and pos Y= 0 for triggers. I REALLY want the mcode button both available and working now. It's poked badly.
2OS said, May 05, 2011, 07:43:19 pmanim=4001+(statetype=a)*9didn't worked, but thanks i learned something new.thanks cyanide, its solved
Oh, what he wrote would have been placed under [Statedef] as it's using anim. As you've requested changeanim you would have to make anim, Value instead.