YesNoOk
avatar

standing animation doesnt work..although defined (solved) (Read 164 times)

Started by Zodiac Uchiha, November 06, 2010, 02:45:52 am
Share this topic:
standing animation doesnt work..although defined (solved)
#1  November 06, 2010, 02:45:52 am
  • **
    • Germany
here is the problem.

i have 2 animations ready in the air file. the one has a char with a jacket, the other one is without jacket.

now if i am going to state 0 , which is obviously the stand state, and search for the animation value i find the value = 0 . thats normal.

but i want 0 to be shown if the palette selected is 1 - 6 , and the animation value 1 should be played for the rest of the palettes.

thats why my Idea was an ifelse thing.

value = ifelse(palno = [1,6] ,0,1)

this one doesnt work, because the syntax isnt correct. the Comma in the intervall is read to be the one seperating the true and false expressions. thats clear to me.

but then i tried this longer version:

value = ifelse(palno = 1,0,ifelse(palno = 2,0,ifelse(palno = 3,0,ifelse(palno = 4,0,ifelse(palno = 5,0,ifelse(palno = 6,0,1))))))

normally, this has to work i would say. but it doesnt. palettes 1-6 work correctly, but if palettes 7 -12 are chosen, then he only stays in the first frame of the animation.  for you to be informed : both standing animations have 2 frames with time = 18. that would make an animtime = 36.

but why is he sticking in the first frame ?
Last Edit: November 06, 2010, 02:06:21 pm by Zodiac Uchiha
Re: standing animation doesnt work..although defined
#2  November 06, 2010, 04:02:15 am
  • ****
  • HAHAHAHAHAHAHAHA
    • Chile
If I´m not wrong, that`s because you`re chaging animation every frame. Just see the trigger it should be like anim != 0 but you should add anim != 1

That should work.
Re: standing animation doesnt work..although defined
#3  November 06, 2010, 04:04:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You have to have 2 changeanims really because of how stand is coded.

Both need to check palettes. And their respective animations. Then you want either time = 0 as a trigger or persistent = 0 as a parameter.

Umm, you could do it in one, but somehow 2 is just more readable when it comes to stand animation changes.


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: standing animation doesnt work..although defined
#4  November 06, 2010, 02:06:01 pm
  • **
    • Germany
thx for help you two. I just had to add persistent = 0

now it works fine.  Problem solved.