How to make Thirst and Hunger bars?

please help!

You could make it so every few seconds the bar depleates unless contact or something with food which would add to the bar.

Here is an example of a health bar http://flowlab.io/game/play/9822 - you could adapt that pretty easily to be hunger or thirst instead.