Does the issue occur in the editor or during gameplay?
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
Briefly describe the issue you're experiencing:
When using pause_game() on a keybind or widget button, if the player is currently moving at the time of pause_game, when resume_game() is used, that movement is not only resumed but stuck on.
For example, if you were moving East (D key) when you paused, resume you will keep walking west.
Even if you hold A to walk west, when you let go...youll go east again.
Are there any errors in the in-game debug console or external console window?
Provide the steps necessary to reproduce the issue:
- Assign a widget button to a script that toggles pause and resume game
- load the game
- start walking in a direction
- while still walking, click the pause toggle button
- game should pause
- click the button again to resume
- Character should continue and keep moving in the same direction.
- Try walking in different directions, and then let go.
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):