#How do i add a hunger bar?

1 messages · Page 1 of 1 (latest)

wispy basin
#

Im making a survival game and im mostly new to JE,i want to do that when the bar reaches zero you start losing health and can recover hunger by eating

crisp echo
#

make a numerical global variable, add this script to the main actor:

when object is created
infinite loop
if (variable) ≠ 0
set (variable) - 1
wait 1 sec
or else
set (main actor) current hp - 1
wait 0.2 sec