Hi!
New to programming so if this is really obvious I appologise. Does anyone have a good routine for checking if characters on a board game are all within a certain distance of each other, say 40 pixels max? I might have upto 20 characters and they all need to be within 40 pixels of each other, but in any random location. Or maybe another way to think of it is a flock of pigeons on the ground, all randomly spaced but needing to be within 2 feet of each other, how would you go about checking if they are?
Thanks
New to programming so if this is really obvious I appologise. Does anyone have a good routine for checking if characters on a board game are all within a certain distance of each other, say 40 pixels max? I might have upto 20 characters and they all need to be within 40 pixels of each other, but in any random location. Or maybe another way to think of it is a flock of pigeons on the ground, all randomly spaced but needing to be within 2 feet of each other, how would you go about checking if they are?
Thanks