How to loop a series of animation?

0 favourites
  • 4 posts
From the Asset Store
For Adventure, Action, Heroes, Sci-fi and Action-RPG games.
  • Hi, I want an enemy to play a series of animation like this:

    condition:

    enemy damage is more then 100

    enemy damage is less then 200

    enemy is not moving along path

    action

    set enemy animation to "animation idle"

    wait random (1.0,3.0)

    set enemy animation to "animation look left"

    wait random (1.0,3.0)

    set enemy animation to "animation look right"

    wait random (1.0,3.0)

    now I'd like to loop this action while the above condition is true...

  • condition:

    enemy damage is more then 100

    enemy damage is less then 200

    enemy is not moving along path

    Sub condition: If not in any animation

    action:

    set enemy animation to "animation idle"

    Add a sub condition: On animation "animation idle" finished.

    Action : wait random

    Set animation to "animation look left"

    Then add another sub condition for on "animation look left" finishes. Repeat and point back to "animation idle".

  • actually, you might have to move around things a bit to make it work properly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Kirat, (I know am a bit late) thx for you reply.

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