Announcement

Collapse
No announcement yet.

Very annoying problem with creating an in-game pause menu with UMG.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Very annoying problem with creating an in-game pause menu with UMG.

    Hello, I currently have a very annoying problem that I have encountered with the 4.8.3 version of UE4.

    I've been using the UMG documentation to create an in-game pause menu ( https://docs.unrealengine.com/latest...t/5/index.html ). My Blueprint is highly similar to the one shown in the documentation. Now onto the problem. When I pause the game, the pause menu comes up and everything is working as it is intended. However when I un-pause the game, any movement key that was held when the game was paused is stopped and won't allow you to move unless you release the key which you had held in the pause menu for your character to move.

    So say you're moving and you're holding down the W key to move and you want to pause the game. When you pause the game you still haven't let go of the W key, when you un-pause the game while still holding W to move after the game is un-paused you stop moving forward unless you let go of the key to move again.

    This issue doesn't happen if I remove the "Set Input Mode UI and Game only" node but that requires the player to click on the screen for the mouse to focus on the widget. It also doesn't happen if I remove the "Create Widget" node but that doesn't bring up the pause menu when the game is paused.
    Click image for larger version

Name:	Capture2.PNG
Views:	1
Size:	138.1 KB
ID:	1159578
    Click image for larger version

Name:	Capture2-1.PNG
Views:	1
Size:	198.5 KB
ID:	1159579
    Click image for larger version

Name:	Capture2-2.PNG
Views:	1
Size:	195.3 KB
ID:	1159580

    #2
    Can you post a picture of how you are handling the player's movement?
    Logitech Wheel Plugin

    Comment


      #3
      Here is how the player movement was done.
      Click image for larger version

Name:	Capture3.PNG
Views:	1
Size:	181.7 KB
ID:	1083913

      Comment


        #4
        After you Unpause while holding W, is the InputAxis MoveForward event firing?
        Logitech Wheel Plugin

        Comment


          #5
          It still fires. Though it isn't limited to only moving forward. Its not limited to only moving forward. It also happens if I go in any direction.

          Comment


            #6
            I know this is going to sound silly, but... why would the player still be holding down "W" key if the player pauses the game? I don't think I've ever once done that in any game I've played (held onto any key during pause screen).
            Website/Portfolio: http://www.VictorBurgosGames.com

            Join me on stream: https://www.twitch.tv/BurgosGames for UE4 Game Dev. If you need help, just stop by and ask!

            Wishlist Neko Ghost, Jump! a 2D/3D Puzzle-Platformer : https://store.steampowered.com/app/1...ko_Ghost_Jump/

            Comment


              #7
              > 'Paused?'

              Lol, I like to prefix my booleans with is so like: isPaused, true or false. A little easier to read

              So if I understand this correctly, you only experience this issue while the key is being held down while they pause it? Very odd. And Victor, yeah it seems silly but you can't trust your users to not try to break it because they will find a way
              Columbus Ohio Unreal Meetup
              @OCGameStudio | Sphere Complex | twitch.tv/WFMOz

              Comment


                #8
                @TheFoyer Oh, yeah Its a personal thing regarding the names.

                "So if I understand this correctly, you only experience this issue while the key is being held down while they pause it?"
                Pretty much. I've been trying to solve it for a week now.

                @Victor
                "but... why would the player still be holding down "W" key if the player pauses the game? I don't think I've ever once done that in any game I've played (held onto any key during pause screen). "
                I and many others do this plenty of times though. If I pause the game, I always hold whatever direction I move in to have that preemptive advantage. If I wanted to study a bosses' pattern to know the exact moment he does an attack, being able to pause and hold down the key for movement or the key for blocking/any other important action then it will be massively helpful and will me allow to counter that pattern/move which helps me learn more about the boss.

                There are many uses for such a feature.
                Last edited by Death_Skull_DX; 08-17-2015, 08:11 PM.

                Comment


                  #9
                  Originally posted by Death_Skull_DX View Post
                  It still fires. Though it isn't limited to only moving forward. Its not limited to only moving forward. It also happens if I go in any direction.
                  When this bug is occurring with W, what is the Axis Value of Move Forward?
                  Logitech Wheel Plugin

                  Comment


                    #10
                    Originally posted by drb1992 View Post
                    When this bug is occurring with W, what is the Axis Value of Move Forward?
                    I think you've found the cause of the problem. Because the value is reset when I pause the game.

                    Comment


                      #11
                      Originally posted by Death_Skull_DX View Post
                      I think you've found the cause of the problem. Because the value is reset when I pause the game.
                      Originally posted by drb1992 View Post
                      When this bug is occurring with W, what is the Axis Value of Move Forward?
                      Yo, how do you find out the value if it's paused and you're in game? Unless you're hovering over the variable output...probably...nvm.
                      Website/Portfolio: http://www.VictorBurgosGames.com

                      Join me on stream: https://www.twitch.tv/BurgosGames for UE4 Game Dev. If you need help, just stop by and ask!

                      Wishlist Neko Ghost, Jump! a 2D/3D Puzzle-Platformer : https://store.steampowered.com/app/1...ko_Ghost_Jump/

                      Comment


                        #12
                        @Victor
                        I printed the value out in-game.

                        Comment


                          #13
                          Oh, even easier! Cool, things people don't think about at the moment, but might come in handy if I am debugging something later ty
                          Website/Portfolio: http://www.VictorBurgosGames.com

                          Join me on stream: https://www.twitch.tv/BurgosGames for UE4 Game Dev. If you need help, just stop by and ask!

                          Wishlist Neko Ghost, Jump! a 2D/3D Puzzle-Platformer : https://store.steampowered.com/app/1...ko_Ghost_Jump/

                          Comment


                            #14
                            But back to that value...isn't it going to be 0 because the game is paused? Or while paused does it still show up the "pressed" value
                            Website/Portfolio: http://www.VictorBurgosGames.com

                            Join me on stream: https://www.twitch.tv/BurgosGames for UE4 Game Dev. If you need help, just stop by and ask!

                            Wishlist Neko Ghost, Jump! a 2D/3D Puzzle-Platformer : https://store.steampowered.com/app/1...ko_Ghost_Jump/

                            Comment


                              #15
                              Originally posted by VictorAsukaKai View Post
                              But back to that value...isn't it going to be 0 because the game is paused? Or while paused does it still show up the "pressed" value
                              Nope, mainly because I enabled the axis event to be executed while it's paused. When I make a pause feature without the "Set Input Mode Game and UI only" or "Create Widget" node then I am able to move forward after un-pausing without this bug.

                              Comment

                              Working...
                              X