When I open a menu while holding down a movement input button, the character continues to move after I close the menu until I press and release said button
Thanks for help!
When I open a menu while holding down a movement input button, the character continues to move after I close the menu until I press and release said button
Thanks for help!
Have you tried calling the “Set Input Mode UI Only” node when opening the menu. It is supposed to shift the player input focus to UI instead of the default gameplay interactions.
When you close the menu later, you can call the “Set Input Mode Game Only” to revert back to the gameplay controls.
Tad bit too late probably but wanted to offer a somewhat roundabout way of “fixing” this.
Basicly make your own InputAxis setup in the pawn. InputAction for Forward,Backward,Left,Right. You can have 2 floats and add/substract 1 on press and the opposite on release. This way you can actually reset the float when you want and it can’t get stuck.
After that, you can use the same logic you had at their respective axis events in Tick with the the two float variables.