CaydenJessen / Stay-Hidden_GAME

Game Repository for CRE311
0 stars 1 forks source link

Player can sprint while hiding skill is activated #7

Closed AndyLee-SH closed 1 month ago

AndyLee-SH commented 1 month ago

Describe the bug Player are able to run when they are hiding.

To Reproduce Steps to reproduce the behavior:

Player use the hide skill. Player press shift to run Player are able to move really fast while hiding.

Desktop (please complete the following information):

OS: Windows 10 Unity Version 2022.1.7

CaydenJessen commented 1 month ago

To fix this I set the boolean isRunning false when the player presses "cntrl" and uses the hide ability. Because of this the player won't be able to run when hiding is enabled.