I am making a cocos2d app that has enemies shooting things. A a lot of times, when a sprite that is programmed to move to a random place once its team mate is killed goes straight into the crossfire of other enemies of his own kind. How do I make something to check if it is moving or not because most of the time, the game just looks like enemies trying to kill themselves. I want the enemies to be able to themselves, but not when they are moving.I am making a cocos2d app that has enemies shoo