Forum rules - please read before posting.

Bug? Skippable interaction does not complete if skipped

edited September 2016 in Engine development
If the users skips the action pictured below, the 'Rattle' bool does not turn back off per the last node of the action.

If the user does not skip this works perfectly. Any ideas?

image

Comments

  • edited September 2016
    When an ActionList is skipped, all Actions inside it are re-run instantly.  I suspect that what is happening is that Unity's Animator system doesn't like changing a parameter's value twice in the same frame.

    To get around that, you can use the ActionList: Check running Action to determine if the ActionList is currently being skipped - and if it is, bypass the first Character: Animate Action so that only the second one is run.
  • Wow thanks Chris! 
  • Hmm...Unfortunately this didn't work. 

    Is this correct?

    image
  • edited September 2016
    Interesting. If the transition from the 'rattle' animation has an exit time, this doesn't work. If it has no exit time it works. 

    EDIT: Nevermind it still doesn't work.


  • What's strange is it seems to get stuck on the Engine: Wait action when skipping during it.

    image
  • I'm afraid I can't recreate that - this is in the latest AC?

    A similar issue was actually encountered when I was making the 3D tutorial.  The solution I used there was to simply add another Character: Animate Action on the end of the ActionList with a Method of Play Custom, and forcing the animation I wanted to play directly.  Give that a go instead.
  • edited September 2016
    This is in 1.54b (latest) Unfortunately that doesn't solve it.  This is definitely a bug in AC.

    In the image below, I set a break point(9). During the action, I hit the skip button during 7 (Engine: Wait.) As expected, while skipping, the breakpoint paused the game. However, AC seems to get stuck on 7: Engine: Wait. When I un-pause the game, the action is still stuck, and my bool is still not set to false.


    image
  • edited September 2016
    I'm able to re-create the bug in your 2D example.

    The issue happens anytime you skip during an Engine: Wait after checking to see if we're skipping. In this example I'm running the actionlist with your 'Run' button after the game has started, If you run the action, it works as expected: 3 second pause, then he speaks. If you skip during the 3 seconds, it freezes on the Engine: Wait action forever.

    image

  • Thank you - I recreated it from that image, and will work on a fix.
  • You're amazing Chris thanks for all your hard work! Do you have venmo or square cash? Let me buy you a beer.
  • Sorry, neither - but it's fine, bugs need to be fixed for everyone, not just those who find them.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.