Alright, so this is about my player blinking to indicate invincibility.
Right now, I'm using AnimationPlayer to make visibility on and off.
It's just... well... the node tree.
Normally, it should be either AnimatedSprite or AnimationPlayer + Sprite. Here, I use both of them (AnimatedSprite for explosion effect and AnimationPlayer + Sprite for blinking).
I did try to use only AnimationPlayer + Sprite, but when changing texture using keys, the texture is just... gone.
Maybe because the explosion sprites are on different files, it doesn't want to work.
Assets:
- Ships
- Tiles <- The explosion sprites are here.
So in the end, I have to use both methods. Though, I feel it's not efficient.