News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

"Timing Problem"

Started by Crase, March 15, 2008, 01:12:06 AM

Previous topic - Next topic

Crase

Umm... I need help executing my 3rd attack state once my 2nd attack state is finished... I at first thought that I should just make the trigger condition possible if the AnimTime of the 2nd atk state equaled 0, but the 3rd attack state never displays.. Here's my code:


[statedef -1]

[State -1, ChangeState]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = s && ctrl

[State -1, ChangeAnim]
type = ChangeAnim
value = 210
triggerall = command = "x"
trigger1 = anim = 200 && anim != 210

[State -1, ChangeAnim]
type = ChangeAnim
value = 230
triggerall = command = "x"
trigger1 = anim = 210 && anim != 230 && AnimTime = 0


Thanks

Cyanide

animtime = 0 is a pretty stringent piece of code. It'll be true for 1 tick, at which point you have to do the command. After that 1 tick, the anim will no longer be 210.

Try a different trigger like animelemtime(3) > 0 or something.


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.

Crase

Whether it's important to you or not, I tried your suggestion and it worked... So I would like to use the post to thankyou...