Animation help.

Started by Giratina667, May 20, 2009, 10:10:26 PM

Previous topic - Next topic

Giratina667

Whenever I activate an attack when testing my character,the animation keeps looping until I come to a standstill.I made sure animation loop was turned off when doing the sprites.Here's the info in the .cns file if that helps:

[Statedef 600]
type       = A
movetype= A
physics   = A
juggle     = 2
poweradd= 50
ctrl = 0
anim = 600
sprpriority = 1

[State 600, HitDef]
type = HitDef
trigger1 = Time = 0
attr = A, NA
hitflag = MAF
guardflag = MAF
damage = 75,50
pausetime = 2,2

[State 600, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 1

Bastard Mami

your changestate seems to be wrong, unless you havea  state1, try changing the value to 0 first.

Giratina667

I managed to get the animation to stop looping,but it still hangs at the last frame for a few seconds afterward or until I attack,and I did try changing the value before fixing it.

Rajaa Retired

Did you listen to him and change the value in the changestate to 0? Or did you just choose some random value?

Otherwise, your problem is weird, so you should post your animation.

Giratina667

Found the problem,I forgot to put the code for the common.cns file in.I apologise,someone please close the topic.