YesNoOk
avatar

Helper freezes when trying to attack (Read 154 times)

Started by BowserKoopa, January 20, 2013, 05:21:43 am
Share this topic:
Helper freezes when trying to attack
#1  January 20, 2013, 05:21:43 am
  • **
    • USA
    • sites.google.com/site/bowserkoopasmugen/home
I am making my character have a move where he calls a helper. The helper comes from the edge of the screen and moves forward. When it is in front of the character, he would breathe fire. He changes anim when he gets in front of my character , but he is stuck on frame 1, and the animation NEVER plays.

For some reason, adding the trigger:

time=50

causes the animation to play. But just putting parentdist x < -60 will cause the animation to freeze. How can I fix this?

Code:
[Statedef 211]
type    = S ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= I ;Move-type: A-attack, I-idle, H-gethit
physics = N ;Physics: S-stand, C-crouch, A-air
juggle  = 1 ;Number of air juggle points move takes
velset = 0,0 ;Set velocity (x,y) (Def: no change)
ctrl = 0 ;Set ctrl (Def: no change)
anim = 211 ;Change animation (Def: no change)
poweradd = 0 ;Power to add (Def: 0)
sprpriority = 1 ;Set layering priority to 2 (in front)

[State 211, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noautoturn

[State 211, VelSet]
type = VelSet
triggerall=anim=211
trigger1 = time=0
x = 4
y = -.1

[State 211, Wing Flap]
type = PlaySnd
trigger1 =anim=211&&animelem=5
trigger2 =anim=212&&animelem=5
value = S0,1
volume = 0
channel = -1

[State 211, HitOverride]
type = HitOverride
trigger1 = Ishelper
attr = SCA,AA,AP,AT
stateno = 217

[State 211, Changeanim]
type = ChangeAnim
trigger1 = parentdist x < -60
value =212

[State 211, DestroySelf]
type = DestroySelf
trigger1 = FrontEdgeDist < -50

;Attack
;======================
[State 211, StateTypeSet]
type = StateTypeSet
trigger1 = anim=212
movetype = A

[State 211, VelSet]
type = VelSet
trigger1=anim=212
x = 0
y=0

[State 211, Helper]
type = helper
triggerall=anim=212
trigger1 = animelem=1
helpertype = normal ;player
name = "Flame"
ID = 215
stateno = 215
pos = 0,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1

[State 211, Leaving]
type = Changeanim
triggerall=anim=212
trigger1 = animtime=0
value = 211

[State 211, StateTypeSet]
type = StateTypeSet
trigger1 = anim=211
movetype = I

[State 211, VelSet]
type = VelSet
trigger1=anim=211
x = 4
Re: Helper freezes when trying to attack
#2  January 20, 2013, 05:37:12 am
  • ***
  • You.. ..you're still alive?!
    • Philippines
    • www.dailymotion.com/SeraphsAres2013
Code:
 
[State 211, Changeanim]
type = ChangeAnim
trigger1 = parentdist x < -60
value =212

In the trigger your telling the State Controller to always keep changing the anim to 212 when the helper is close. So it's stuck at anim 212 at frame 1. Just add another trigger like time >= 0 to make it change. Hope this helps.
Sound Pack Completion: CT=40%, CSE=75%
Working on decoding BBCP files and progressing on other characters (CSE EN).
BlazBlue - Complete Resource Thread
Re: Helper freezes when trying to attack
#3  January 20, 2013, 06:04:41 am
  • **
    • USA
    • sites.google.com/site/bowserkoopasmugen/home
Code:
 
[State 211, Changeanim]
type = ChangeAnim
trigger1 = parentdist x < -60
value =212

In the trigger your telling the State Controller to always keep changing the anim to 212 when the helper is close. So it's stuck at anim 212 at frame 1. Just add another trigger like time >= 0 to make it change. Hope this helps.

Thanks, I understand the problem now. However, the trigger you suggested does not work. I think I need a different trigger, although I'm not quite sure which one as of now.
Re: Helper freezes when trying to attack
#4  January 20, 2013, 06:53:37 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's because his trigger is going to cause EXACTLY the same thing.

Either use trigger1 = anim != 212

Or add

persistent = 0
at the bottom of the sctrl. Either of these should solve it.


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.