New Game Project - Bots/Artificially Intelligent Enemies

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Tue Jun 17, 2008 4:19 pm

New Game Project - Bots/Artificially Intelligent Enemies

Post by austeninc »

Hey everyone,
My friend and i just started working on a video game (not really sure what of yet), and I got to thinking- I can do everything but create artificial enemies that seem intelligent (ish). Just wondering if anyone had any ideas as to how to do this simply using logic blocks so that the enemies at least seem to have some sort of intelligence. Any help or suggestions would be hugely appreciated!


Sometimes you just need an awesome website for an affordable price-
check me and my blog out at

Posts: 60
Joined: Wed Oct 16, 2002 8:51 pm

Post by OTO »

a very basic set up, using states and non dynamic enemies ( but Actor)
state 1
Your enemy character walk around or do some animation
Always - > AND -> IPO Actuator - Play/Loop/SomeAnimation
Add Logic to check if the Player is aproaching
Radar/Near/Ray -> AND - State Actuator - Copy State2
If the Player enters the survey zone then State2 becomes active
In State 2 the enemy shoot
Always Sensor -> AND - IPO Actuator - SomeShootingAnimation
Always Sensor -> AND - Edit Object Actuator - Track to: thenameofthePlayerObjecthere
This is necessary to force the enemy to always target the player
Then you must find a way that if the player run away or dies to change to first state ( or other)

Posts: 0
Joined: Sun Feb 06, 2011 8:58 pm

Post by SolarLune »

If you want to create really intelligent enemies, use Python. Logic bricks can be used for some simple things, but for advanced behaviors like taking cover when being attacked or running for health when damaged, Python is the way to go.
Check out my blog of game design and BGE tutorials at

Post Reply