Filter Cooldown Decorator Speed Up

NodeCanvas Forums Support Filter Cooldown Decorator Speed Up

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9766
    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.

    #9769
    Gavalakis
    Keymaster

    Hello,

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

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #9768
    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.

    #9767
    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!

    Join us on Discord: https://discord.gg/97q2Rjh

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