I've searched around for awhile on several occasions and I couldn't find anything that really helped me out... So I have a question- how can I get my AI to work with more than 1 instance of an enemy object?
Heres the problem- I have a bird enemy that jumps towards the player when he's 100 pixels close. I have that working the way I want, but I can't have more than 1 doing it at the same time... If I don't use for each object, they both jump regardless of their position relative to the player character, but if I do, only 1 bird will jump at a time. Is there anyway I can get around this? Yes, I saw the tutorial on "For Each", but I've tried several ways of using that condition.
I've done it with a plain "For Each Object", one with "For Each Object Ordered" going my object.count, and I tried "For Each Object" with a condition that checks to see if the objects "active" private variable is equal to 1(1 = active were 0 = deactive). I'm kind of lost here...
Heres my cap:
http://dl.dropbox.com/u/20855857/BabyMa ... ouble..cap
*Bullet range depends on the stamina bar located beneath the health bar*
Also you can hit backspace for the current time according to your computer's clock...