N2G
new2gaming
/browse
/topics
/about
random()
Making Games
From player to maker, with new2coding.
Search
All
Consoles
Game Mechanics
Getting Started
Hardware
Making Games
Parents
PC Building
Subscriptions
1 guide
Making Games
5 Oct
How does a game enemy decide what to do? State machines for beginners
Ever wondered how a game guard knows when to chase you? Most enemies run on a state machine: they are always in exactly one state, like…
3m