I'm using timers to despawn birds in my angry birds ripoff. when there's 1 second left in the timer the bird is supposed to set visiblity to false and trigger an effect, but the timer randomly stops after broadcasting the signal and despawns the bird too early. It's not paused or anything, and I've spent 2 hours trying to figure it out. I think it has something to do with the signal that is set to emit when the timer has 1 second left, since that is exactly when the timer keeps stopping. Anybody have any idea whats going on?

  • Toxe replied to this.

    Sounds like the issue might be with your code rather than the signal itself.

      PizzaHutsAlat Do you call something like queue_free() a bit too early? You should post some relevant code.

      BlueCap so very much this... I'd love to see how a timer node is firing a signal while it still "has 1 second left".

      @PizzaHutsAlat perhaps the animation player is a better fit here, leveraging its timeline to trigger events at an appropriate time. Using a call track, you don't even need any code as it allows the [animation] player to trigger methods on another node, such as changing visibility and calling queue_free.

      I fixed it, I used queue_free() a bit too early. I didn't see any of your replies until after I fixed it, but yeah