In this episode of the animal herd system we have been working on, I am going to implement how does the animal herd react to the external threats as a herd/team. Here, I am going to add a wolf character which is marked as a threat to the animal heard and when one deer/member of the herd see the threat/wolf, it will notify the leader and leader will notify everyone else. So, the whole herd will start running away from the wolf.
password=codelikeme_runrunrun
Thilina Premasiri
2021-07-18 00:35:41 +0000 UTC