Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to implement enemy movement on a X-Y grid. Would it be a good idea to have a predefined table with an initial X-Y position and a predefined "surveillance path"? Each enemy will follow its path until it detects a player, at this point it will start chasing the player using a chasing algorithm. According to a friend of mine this implementation is good because the design of a good path will provide to the user a sort of reality sensation.

share|improve this question
up vote 2 down vote accepted

It all depends on the kind of gameplay you want to achieve.

If you want a game that's all about finding the best strategy to finish a level, then this deterministic approach can fit very well, as accomplishing the same actions will always lead to the same results. Random behaviors could just be an annoyance for the player.

But if you want an action-oriented shooting game, you might want to introduce some randomness to give your game more replay value. If your game is all about aiming well and shooting fast, it can get boring to get the exact same enemy configuration for each play-through.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.