Hi,
I’m trying to shoot bullet when at a specified frame in an animation.
In the examples, I saw only complete event, which occurs only at the end of animation.
If I have animation of 3 frames, and I want to shoot when at 2nd frame.
Can you please suggest which is the best practice to do so?
I’m thinking of dividing to 2 animations. When 1st animation completes, I call shoot() and play 2nd animation. But since these things repeat very often in my game, this looks not good right?