Animation Finished?

For questions about using Classic.

Post » Wed Jan 21, 2009 4:28 am

How does Animation Finished work?

I have an animation set to not loop.

I have two events:

+On "key" pressed
-Sprite: Set animation to "Nonlooping Animation"
-System: Disable group "HandleAllOtherAnimations"

+Animation "Nonlooping Animation" finished
-System: Enable group "HandleAllOtherAnimations"

But upon pressing "Key", the animation plays once, returns to frame 1 of the animation, and never calls Animation Finished, locking the animations there. Why? What am I doing wrong?
B
2
G
3
Posts: 71
Reputation: 992

Post » Wed Jan 21, 2009 7:48 am

Try picking by frame, then just choose the last frame.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Jan 21, 2009 8:16 am

"On animation finished" should work (and does most of the time), though earlier I was trying to help Candescence with it and for some reason unknown reason it wasn't working for one specific thing.

Maybe you could post your .cap? Then someone can take a look and make sure it's not a bug.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Jan 21, 2009 11:03 am

Can you post all your events? Are you sure you're not disabling the group with the trigger in it?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Jan 21, 2009 3:34 pm

I posted the file to the upload forum, here. I'm definitely not disabling the group with the trigger in it.

I've tried the checking for the animation frame thing, and it works as a work around, but it'd still be nice to do this the proper way. It'd make further coding a lot easier, for instance.
B
2
G
3
Posts: 71
Reputation: 992


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests