Pause movement when key held if enemy enters FOV
Problem to solve | Reason why?
When exploring a map with the movement key held, it’s possible that an enemy will see you and begin attacking you before you realize it is happening. This can be a life or death situation.
Proposal
Keep track of new entities leaving and entering the player's field of view, and use it to set a flag or emit an event that will prevent the held key player input system from running.
Edited by Beeman