Add a graphic during a certain frame index of another sprite that is playing

I don’t want a graphic to appear until the sprite has reached a certain frame index. I can get this.anims.currentFrame.index in the Update function but have no idea where to add the graphic. If I add it in the Create function it will be added too early. If I add it in the Update function an error is returned saying the graphic is undefined.

Can you add the graphic in the create function but have it set to visible =false and then make visible in the update function?

Yeah thanks. I found that suggestion on the internet minutes later.

I’ve got a lot to learn. Tweens and other sprites can be added in the update function but not graphics. So far, I’m learning solely from various examples and its not easy.