Feed mechanic help

So my friend is making a game where you have to feed a chicken and he doesn’t know how to make that mechanic

It’s supposed to be where you grow some food and then bring it to the chicken to feed it but he doesn’t know how to make it so that the chicken is less hungry when you feed it

He also wants to know how to make it so the chicken expires if you don’t feed it in time

help

button pressed → item granter (- however much the chicken takes)

1 Like

but then how do i make it so the chicken isn’t hungry anymore

If the chicken gets all he needs, deactivate the button.

Use a repeater that changes the chickens hunger by 1 each second, and when you feed the chicken, brodcast on a channel to reset the counter. When the counter reaches a certain number, then expire the chicken.

1 Like

thanks

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.