Check if animation exists

0 favourites
  • 4 posts
From the Asset Store
4 Block Soldiers with different animations, 400x400
  • Hello,

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

    Thank you.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • 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.

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)