Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: mulambo on December 17, 2017, 10:51:07 AM

Title: How to make a character exlode into pieces ?
Post by: mulambo on December 17, 2017, 10:51:07 AM
Well, I've made an animation in fightfx.sff / air of a messy blood-and-pieces explosion, that I want to use each time a character dies if the opponent hits him with a hyper or super move.
I tried my best with AssertSpecial = invisible, and other stuff under [State -3], but they don't seem to work (sometimes the character re-appears on screen, sometimes he blows up even if he's not touched, sometimes the player blows up correctly the KO roundstate appears but the opponent stands there waiting for the You Win roundstate).
Further info, this is the lame code I was trying with no results:

Code: [Select]
[State -3, AssertSpecial]
type = AssertSpecial
trigger1 = life = 0
trigger1 = stateno = [5000,6000]
trigger2 = stateno = [5000,6000]
trigger3 = stateno = [5000,6000]
trigger1 = p2stateno = [700,710] ; the ultra move of the opponent
trigger2 = p2stateno = [420,421] ; some hypers
trigger2 = life = 0
trigger3 = life = 0
trigger3 = p2stateno = 530  ;another hyper
flag = invisible
ignorehitpause =  1
persistent = 1
[State -3,Explod]
type = Explod
trigger1 = p2stateno = [700,710]
trigger1 = stateno = [5000,6000]
trigger2 = stateno = [5000,6000]
trigger3 = stateno = [5000,6000]
trigger2 = p2stateno = [420,421]
trigger2 = life = 0
trigger3 = life = 0
trigger3 = p2stateno = 530 
trigger1 = life = 0
;trigger1 = life = 0
anim = F150
removetime = 42
postype = p1
pos = 0,-90
sprpriority = 4
bindtime=0
persistent = 0
[State -3, AssertSpecial]
type = PosAdd
trigger1 = p2stateno = [700,710]
trigger1 = stateno = [5000,6000]
trigger2 = stateno = [5000,6000]
trigger3 = stateno = [5000,6000]
trigger2 = p2stateno = [420,421]
trigger2 = life = 0
trigger3 = life = 0
trigger3 = p2stateno = 530
trigger1 = life = 0
y=9999
ignorehitpause =  1
persistent = 1
SimplePortal 2.3.5 © 2008-2012, SimplePortal