How do I delay the Animation on a Follow Behavior?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • I put a follow Behavior on a enemy and I wanted him to mimic the Player animation, but even though the Follow Behavior has a delay, the Animation of this enemy that is mimicking the Player is going at the exact same time that the Player moves.

    I used Every Tick > Player.AnimationName | Every Tick > Enemy.AnimationName

    Maybe should I use AnimationFrame? I don't know how to use it though, it just appears as errors.

    Tagged:

  • You can configure custom properties to follow the animation name and/or frame. Check out this example.

    + System: On start of layout
    -> PlayerFollower: Follow: Follow Player (from current position False)
    -> PlayerFollower: Follow: Start following custom property "animation" Step
    
    + System: Every tick
    -> PlayerFollower: Follow: Set custom property "animation" value Player.AnimationName
    -> PlayerFollower: Set animation to PlayerFollower.Follow.DelayedCustomPropertyValue("animation") (play from beginning)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DAMN! THANK YOU VERY MUCH! IT WAS EXACTLY THAT!

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