Set random frame using animation name

0 favourites
  • 4 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Hi, beginner question. Using the Set Frame action is there a way to call a random frame within a named animation in the "Frame Number" field?

    For my enemy characters I have several different death animations depending on the weapon the player kills then with. Once the death animation is complete I have a large number of "enemy dead" frames so that once the death animation is complete the enemy lies on the ground in different positions depending on whether they have been shot in the front or back.

    So once the relevant death animation is complete, I want to pick a random frame from the "enemy dead front" or "enemy dead back" animations, each of which contains 10 frames.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • set frame to:


  • That works if I have just a default animation for the enemy. But if I want to set a random frame from one of several enemy animations, then how would I bring in the animation name?

  • first set random animation, then set random frame?

    or if random is too random, use choose animation.

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