CaydenJessen / Stay-Hidden_GAME

Game Repository for CRE311
0 stars 1 forks source link

Movement of Player after they die #5

Closed AndyLee-SH closed 1 month ago

AndyLee-SH commented 1 month ago

Describe the bug When Player dies, the player can still be moved around on screen

To Reproduce Steps to reproduce the behavior:

Player run up to NPC NPC contact Player Player's health goes down to zero Game over screen comes up Player can still be moved left and right

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

CaydenJessen commented 1 month ago

To fix this I created a bool for if the player was alive. The player and camera can only move when this value is true. When the player dies it is set to false.