My Pawn Doesn't move when I hit play button

Hi Everyone,

I made a little game , TPP game. The game run perfectly. The problem appeared when i make the main menu. When I try the game by hitting “Play” button from Unreal Engine (even if i hit “Standalone Game”) , the menu pop up. But in background the game start running. I cant even control my character by hitting “A,S,W,D” keys. What can i do to prevent this ?

Note: 1.My character is moving . 2.I already made a Main menu map and attached Main menu widget to it.

My Pawn Doesn’t move

I even can control my character by
hitting “A,S,W,D” keys. What can i do
to prevent this ?

The title and the description contradict. I will assume that the issue is that the character can be controlled while you’re in the menu.

You’re setting Input Mode to Game / UI Only on Begin Play in 2 separate blueprints. Instead set the Input Mode to Game when the user exits the menu.

Sorry autocorrect error, I cant move my pawn when I click play button

It’s a combination of the Input Mode nodes. When you hit Play button, set the Input Mode to game or Game and UI if you still want to interact with menus.

The above assumes you actually have movement methods for the pawn in the first place, of course.

The game run perfectly

It seems you do.

Thanks a lot, It works perfectly, Thanks for helping