YesNoOk
avatar

[SOLVED] Changeanim Triggers (Read 1675 times)

Started by -_Shadow_-, May 05, 2011, 10:26:12 am
Share this topic:
[SOLVED] Changeanim Triggers
New #1  May 05, 2011, 10:26:12 am
  • ***
  • *The Shadow*
    • www.freewebs.com/plaza24
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)
Last Edit: May 07, 2011, 04:58:20 am by -_Shadow_-

2OS

Re: Changeanim Triggers
#2  May 05, 2011, 07:43:19 pm
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
anim=4001+(statetype=a)*9


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Changeanim Triggers
#3  May 05, 2011, 10:56:42 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/

  • Online
You probably should explain that to him. :ninja:
Re: Changeanim Triggers
#4  May 06, 2011, 12:27:40 am
  • ****
    • www.justnopoint.com/Masters/
Whats to explain, it's all right there :ninja:
Re: Changeanim Triggers
#5  May 06, 2011, 02:03:04 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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 or
Code:
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.


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: Changeanim Triggers
#6  May 06, 2011, 04:02:25 pm
  • ***
  • *The Shadow*
    • www.freewebs.com/plaza24
Re: Changeanim Triggers
#7  May 07, 2011, 12:05:18 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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.


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.