Keeping units from overlapping.

  • hello all, I am working on developing a top down 2d shooter. I have just recently implemented enemies who will chase and attack the player whenever he pulls out his gun. I am currently focussing on getting the enemies to search for the player once they lose line of sight. also if anyone knows how to keep.the enemies from all bunching up once they start chasing the player that would be great. (ive given each one a random speed.and.they go.half.speed when.in shooting range). thanks a lot :) <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Posting a CAPX usually gets you an answer faster...

    Without seeing what you're doing I can think of two possible routes:

    Use Physics and Solids to keep the enemies in their own space

    or

    Use IsOverlapping to detect enemies about to occupy the same space and stop or slow their movement.

    You will probably have to post a CAPX before anyone can give you better or more accurate advice.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)