Input for left mouse click not always working
Hello, I have a game that implements the left mouse button click as a firing event. While the button is pressed, it should continue to fire projectiles until it is released. Then, when the player looses all hitpoints, a death animation plays and a "Game Over" menu pops up with options to restart the game or quit the level.
It's when I restart the game that the issue starts. I can hold down the left mouse button and fire after restarting the game, but if I let go of it and then try to press and hold it again, it doesn't work. I noticed I can only get the "gate" to open if I double click with the left mouse button and hold. Does anyone have any suggestions as to why this is happening and how to address it?
Attached are my blueprints for the Firing event in my player pawn and controller class, and my restart button for the menu.
Game Over Menu
asked Dec 25 '16 at 06:34 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here