• Godot Help
  • Efficient Way for Flashing & Exploding Effects

So this is about my flashing effect for invincibility.

Someone suggested to me to use AnimationPlayer to turn on and off the visibility.

It's just that I also have AnimatedSprite for explosion effect all across the parent node.

Either use only AnimatedSprite or AnimationPlayer + Sprite. That was how it works, wasn't it?

I tried using only AnimationPlayer + Sprite, but when changing texture, it's just gone.

So in the end, I have to use both. But personally, I don't think it's efficient.

KanataEXE changed the title to Efficient Way for Flashing & Exploding Effects .

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil."

Is it really slowing anything down, or is this more of an academic question?

    duane

    Not really, no.

    Just... weird using AnimatedSprite and AnimationPlayer together.