Posts

Showing posts from January, 2018

Player Stats and Hiding mechanism

Image
Player Stats and Hiding mechanism. Last week I worked on two scripts, one for giving the player  visibility, noise and smell attributes and one for adding those values to items and hiding spots. These attributes will later be used for the AI to detect the player. I still need to add an increment when the user moves in visibility and noise. So the player starts with the values of: Player Visibility:70 Noise: 0 Smell: 10 The torch when lit has its own set of attributes to add to the players stats Torch Visibility:100 Noise: 5 Smell: 5 Hiding space Visibility:-70 Noise: -10 Smell: -10 There are also hiding spots, which when you hide in them they reduce those values thus far reducing the chances of the AI to spot you. How Hiding works When the player approaches a hiding space (is within close proximity) and points to it with the cross hair (later on it will be when pointed by a controller) the hiding area gets highlighted. when you left click the user contro...