– How come a game can have random glitchy moments if it’s all pre-written code?

909 views

I was playing FarCry Primal on PS4 and Mirror’s Edge catalyst – sometimes NPCs will get stuck in a wall or end up standing on the air. Sometimes I complete a quest on FarCry and the mission objective won’t go away until I re-spawn and an NPC will be standing 2 feet above the ground.

What causes weird minor glitches like these to happen ?

In: Technology

3 Answers

Anonymous 0 Comments

It’s because it’s not “all pre-written code”. What you’re describing is more like a cut-scene, which are rarely glitchy.

NPC behavior, however, is usually dictated by more vague rules. A guard, for example, might boil down to something like “walk this path, until you hear noise, then try to follow the noise but don’t hit objects.” But it’s easy for the game to wind up in a situation where some of those rules conflict – like following the noise requires trying to walk through an object, or after following the noise it can’t get back to it’s assigned route – and then weird things can result.

You are viewing 1 out of 3 answers, click here to view all answers.