Check if animation exists

Get help using Construct 2

Post » Thu May 30, 2013 2:22 pm

Hello,

Is there a way to check if a specific animation exists in a Sprite object through the event sheet?

Thank you.
B
4
S
1
Posts: 5
Reputation: 410

Post » Thu May 30, 2013 3:07 pm

I was messing around with animation names recently, and I don't think there is a way to check or list all of an object's animations. I know you can call upon and compare an object's Current Animation, but that's about it. There isn't any kind of 'next animation' command either, so you couldn't even cycle through them to check. Perhaps someone clever will know a good workaround though
B
15
S
5
Posts: 141
Reputation: 1,657

Post » Thu May 30, 2013 3:19 pm

I don't think there is, but I also don't see why you would need it. All the animations are created in the editor, so you should already know all the possible names. Anyway, what do you need it for? Maybe there's another way to go about it.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu May 30, 2013 4:47 pm

Thanks for the answers. It's quite a complicated matter so I don't want to go into details, but I think I found a solution on my own - I will just have *blank* animations for the ones that I'm not sure they exists in an Object. Then I'll always have an animation to run.

Thanks again for the help.
B
4
S
1
Posts: 5
Reputation: 410


Return to How do I....?

Who is online

Users browsing this forum: Goomba, Zaksoid and 13 guests