How can you shoot in a 2d platform game?

i’m already able to make my character shoot with logic bricks but the only problem is that when my character shoots the animation goes perfectly shoot but the bullet starts before the character does the full shooting animation.

Check with python if the animation is already over(isPlayingAction()), or its frame is the one you want(getActionFrame()) before deploying the bullet; or create a timer variable(blender call them properties) which starts when the shoot animation starts, and ends after the animation is done(you will have to test thought to know the right time), when the timer ends it becomes 0 again, and also it will trigger the bullet deployment.

ok thank you i will try