I am trying to make a virtual pet that has a health bar that is decreasing over time, and have to feed the pet in order for the health bar to increase. I have no idea how to tie in my health bar with real time.
I tried searching up ways to make this happen, and I stumbled upon the use of the timer function. However, it doesnt seem to work when you input an integer.
Tomo Shinozaki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.