[05/05/2022] Killfeed System
- Daniel Henshaw

- May 4, 2022
- 1 min read
Updated: May 27, 2022

I created a killfeed canvas in order to display the kills, deaths, and weapon used. This helps players keep track of their score.


Killfeed Script:
This killfeed script receives kill/death events and managers the killfeed. It does this by instantiating a 'KillfeedItemPrefab' gameobject. It then runs the initialize script and sends over the killers name, dead players name, and weapon used. I decided to set the transform of the gameobject to the first child which set the position of the object to the top. I also made the item delete itself after 5 seconds which stops the killfeed getting too clogged up.

Killfeed Item Script:
This script sets the killer, dead player and weapon image on the killfeed item.



![[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