Hey, this is my first post here.. Been lurking this site for many years now but just got around to registering..
Anyway, the game I'm making has Zombies whom chase people.. Both which run on the bouncing ball built-in movement. The zombies are set to follow the people.. I figured it would just by default select the nearest person, but no. They'll be a person right next to them and they'll chase one on the opposite side of the level.
So I know I could use a giant invisible box as a detector and have it to whee if a person is in that box zombie will chase them.. But that ends up causing problems with getting id of the boxes when killing the zombies.. So I was wondering if theres any event that will tell the zombies to select the nearest person without any extra objects or anything and will work with multiple zombies and multiple people in a level at once..
Without any extra objects or anything... if that means extensions too, I guess you wouldn't want to use the advanced direction object? Meh, sounds like that extension would do the job for me anyway...
b0z0, I have a distance formula I made that you can use to compare the distance of each victim from a zombie... but then you'd probably have to compare each one, and depending on the way you've made your game that might be out of the question. Of course, I suppose you could do a bit of fast looping... Sounds like a headache to me.
No, I'm willing to use extensions.. I just don't want to use any extra active objects unless its absolutely necessary..
And Clayton, I'd love to that that distance formula.. If I do have to it for each object though then it is completely out of the question though.. There's usually about 200 or so enemies on screen at once.. =P