I am trying to do a game where the player's heart rate is raised on screen when they enter a collider of a monster, and over time it decreases. I was thinking that just a text on screen with a UI element, that displays a float variable would work.
so basically, the heart rate would start at something like 64bpm and then when the player gets near a monster the heart rate would raise to something like 75bpm. then, when the heart rate gets to a certain point, maybe 120pbm, the player has a heart attack and its game over.
I am a little confused on how to get all this work. I know this is quite a loaded question. But It was better to do this all in one rather than segmenting it. I really need help with the coding with this whole project.
any help is welcomed.
Thank You
↧