I'm trying to make a game with bird AI. But, the problem is, whenever the birds duplicate, they all follow the same variables. For instance, whenever I try to make switch directions, all of them switch to bird UID 0 instead of on their own. Also, whenever I try to program the bird to stop moving after a certain amount of time, they all stop with UID 0 as well.
I want each bird to be individual, and I don't know how to do it. Any help/ideas?