Filter Cooldown Decorator Speed Up

Forums 💬 NodeCanvas ⚙️ Support Filter Cooldown Decorator Speed Up

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19237
    sanity
    Participant

      As it run it seems to somehow start more and more of the Cool-down coroutine, in effect making the counting down speed up over time.

      I just added a hacky fix my programming skills mustered up of adding a bool that turns on when coroutne starts and off when it stops, then having the same couroutine yield break if another coroutine has set the bull on allready.

      #19240
      Gavalakis
      Keymaster

        Hello,

        This seems weird. Can you please post a screenshot of your tree?

        Thanks!

        #19239
        sanity
        Participant

          Was able to recreate it with this.
          https://onedrive.live.com/redir?resid=2401AF620DF7FD1E!108585&authkey=!AKRGoA4BWwqbzCU&v=3&ithint=photo%2cpng

          Important thing is that the action under filter must return the same frame? I tried to use debug text with 0 seconds set the bug did not happen.

          #19238
          Gavalakis
          Keymaster

            Hello,

            Thanks for the extra info. It helped.

            Here is the fix:

            Replace the coroutine in the Filter with this:

            Basicaly move the yield return null above the currentTime -= Time.deltaTime.

            Cheers and thanks!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.