CaydenJessen / Stay-Hidden_GAME

Game Repository for CRE311
0 stars 1 forks source link

Player Jump issue #4

Closed AndyLee-SH closed 1 month ago

AndyLee-SH commented 2 months ago

Describe the bug When a player gets pushed by enemy, sometimes player can not jump afterwards.

To Reproduce Steps to reproduce the behavior:

  1. Player run up to NPC
  2. NPC Chase
  3. NPC contact Player
  4. Player disengaged
  5. Player can not jump.

Expected behavior Player can jump whenever Jump button is activated

Desktop (please complete the following information): OS: Windows 10 Unity Version 2022.1.7

CaydenJessen commented 1 month ago

Issue fixed by changing the groundcheck from collision detection to ray-casting