Animations do not play til end every time

Hello,

I have a little problem with an animation setup that i cant solve. It's a dummy for characters im working on.
The concept is like this:

The character has an idle state that contains 1 animation that loops. Every now and then another animation is launched over the idle animation (idle_random). This works fine except a little sync problem, but i have to study the "timers are for chumps" thread closer i think.

Besides these idle states i have two event states that can be triggered by touch. This is to different animations, 1 sec long each (no loop) that are launched over the idle animation.

Pretty basic. However, the event animations plays fine most of the time but not always. Sometimes they just play for maybe 4 frames, or 7 etc and then the idle animation returns. This appears irregularly and im not sure why this happens.

The animations are triggered by an integer that keeps track of which animation to play. I tried both regular timers and self.time to tell gamesalad to play the event animations for 1 sec.

Any problem you recognize?

I could attach more code if needed.

Kindly
F
Sign In or Register to comment.