I'm trying to set up a game a bit like the old virtual villagers games for my nan before she passes as she always complains about how the new ones *****
Although this is my first day working on the game I already feel like I've reached a barrier in my messy code...
I was wondering if someone would be able to help me fix it and tidy my code a bit. I basically want the bugs which will eventually become villagers go to the food source and water source when they are hungry or thirsty, however I don't want them to bounce between them. (They go to the water to get 5 water, then they go to the food to get 5 food then the water ect)
Basically I want them to be able to survive efficiantly without just sitting on the water and food. Here is what I've got so far but it just isnt working.
I was wondering if anyone could tidy the code up for me or maybe tell me how to fix the issue I'm having with the water and food.
dropbox.com/scl/fi/70twjswomc80qh94uu7wc/Movement.c3p