[07/05/2022] Hitmarkers
- Daniel Henshaw

- May 6, 2022
- 1 min read
Updated: May 27, 2022
Player Controller Script:
When the player takes damage it now instantiates a hitmarker game object onto the players UI. It calls a function on the Hitmarker Script which tells the hitmarker if it is a headshot.

Hitmarker Item Script:
When the hitmarker item prefab is initialized it does a check to see if the hit was a headshot. If the hit was a headshot it changes the colour of the hitmarker red and if it isn't the hitmarker stays white. The script also plays audio and then deletes itself after 0.2 seconds.


![[20/05/2022] Releasing Development Build On Itch.io](https://static.wixstatic.com/media/34245f_ff3f0052ee7647c586cc2668b2f4cda7~mv2.png/v1/fill/w_980,h_357,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/34245f_ff3f0052ee7647c586cc2668b2f4cda7~mv2.png)
![[18/05/2022] Weapon Animations](https://static.wixstatic.com/media/34245f_b09aeeced8144d99a570fbad86d1dc9d~mv2.png/v1/fill/w_495,h_321,al_c,q_85,enc_avif,quality_auto/34245f_b09aeeced8144d99a570fbad86d1dc9d~mv2.png)
Comments