10/10 - 10/12
- Nathan Matarazzo
- Oct 13, 2023
- 1 min read
Since this was a short week, I spent most of my time cleaning up my code, and adding the stamina feature into the game. I also improved the UI system, and character selection screens.
I changed the code so the scripts use public static variables instead of the old way I used communication between scripts, which was by finding the game object in the unity menu, and then finding the script component. This is flawed because, I will be using the same script for different characters, and one script won't be able to find the other if it is on a different game object, or if the game object isn't being shown because a different character is being used. This makes the game borderline unplayable with multiple characters, so I had to change it.
I also made a stamina bar feature that affects speed, and the jumping height of the character.


I still need to change the rigidbodies of the player characters, but I still have a few things to do before I take on that monumental task.



Comments