Week 7 Sanctum Infernum
- Beny Mona-Moke
- Dec 10, 2023
- 2 min read
In this week sprint I waas tasked with creating a scipt that the player would take damage and also have a variable for the player health so that health can be added and removed.

I started be creating a fsm on a emepyt game object called players health that the would hold the players health I created this and made it a global variable as that way anyone other script can easly call on it. In the fsm I also created a variable called damage that would subtract from the players health and that when the player health hit zero the player would be deleted off the scene I used the action float compare it would constantly be checking if the player health has gone below zero. To test this I simply created a fsm called damage where by pressing the the space button the players health would lose a certian amount of health then the player would be deleted. I did this as a way to simply playtest it to see if it works.




On satuday I sent showed I did for this week to my project lead who stated that it was good but it could be used as it was as the programmers wouldn't be able to link it. So my lead tuned it into a script and that was his new task for that week as it was inportant for the game.
We had our meeting on monday and went over our tasks and the leads started to give out tasks for the next sprint.
Reflective
I should of reached out to my lead sooner as I did have concerns about if the programmers would be okay with playmaker and the brief did confuse me a bit and if I had done that I wouldn't have given my lead more work than what he was going already.
Comments