The design and/or logic of how an in-game entity makes decisions about its behavior.

learn more… | top users | synonyms (1)

-1
votes
0answers
47 views

AI for enemy in 2d game [on hold]

I need an AI algorithm for enemy in 2d game for aiming at player and shooting. This is a j2me game. The enemy first comes from top and waits few seconds and then moves to left and then goes to ...
1
vote
2answers
151 views

Understanding the Seek steering behavior

I'm currently studying steering behaviors. Have recently learned about Seek. I have a question about this. Seek is supposed to turn the agent slowly in the direction of it's target, and then move in ...
0
votes
0answers
46 views

How game developer uses AI for own game? [on hold]

In computer science, AI means all machine learning methods that train data and extract patterns and use of test data. I am confused that how used AI in current games. Are AI in games based on learning ...
7
votes
2answers
518 views

What are the benefits of using an entity ID system?

I'm currently reading the book Programming Game AI By Example. The book mentions assigning unique ID numbers to each entity in the game. Often when entity A needs to contact entity B, A gets a ...
1
vote
0answers
34 views

Using Behavior Trees and Events together

I am beginning to work with behavior trees and am unsure how events should be handled within the tree. Lets say we have a space game where the player is dogfighting with a handful of other ships, some ...
-5
votes
0answers
39 views

How do I port this 3D AI script to 2D? [closed]

I have a script for Enemy AI, but it's for 3D games and I need one for a 2D game. How do I do this? var Distance; var Target : Transform; var lookAtDistance = 25.0; var chaseRange = 15.0; var ...
7
votes
1answer
172 views

Finding the correct speed for AI to turn to reach goal

I have a ship that travels at max speed maxSpeed and can turn rotationSpeed degrees per second. The ship always moves in the direction it is facing which means that the faster the ship is travelling ...
0
votes
0answers
47 views

2D Enemy AI reacting to sound

I'm currently working on a 2D top-down survival game and I'm trying to figure out a good method for enemies to detect player sounds. For instance - if the player fires his gun it should play a sound ...
0
votes
1answer
82 views

Moving turret aiming at moving target

I've found this post Turret Aiming Formula on Reddit and a nice answer a while back. The solution in the answer works great for still sanding turrets but is almost unusable for moving turrets since ...
2
votes
0answers
101 views

Simulating crowds of enemies [closed]

I am wondering what would be a good way to handle enemy crowds generation and simulation. For example in a hack'n'slash game, how would one go about placing enemies and managing their movement in the ...
2
votes
2answers
118 views

techniques for an AI for a highly cramped turn-based tactics game

I'm trying to write an AI for a tactics game in the vein of Final Fantasy Tactics or Vandal Hearts. I can't change the game rules in any way, only upgrade the AI. I have experience programming AI for ...
0
votes
1answer
58 views

How do I keep enemies from clumping up into one area? [duplicate]

I am making a zombie game and as I was making it I noticed the zombie AI starts to clump up into one mega zombie in one area. I was wondering how I could keep the zombies from doing that and instead ...
0
votes
3answers
217 views

How do I write a “Connect Four” AI?

I've made a Connect Four game. The first move is made by the player and the second by the computer. Currently, the computer moves randomly; its moves are generated by C++'s random number generator ...
6
votes
2answers
295 views

“Line of sight” path across navigation mesh

I want to calculate the line of sight in a navigation mesh. Consider the image below, the yellow line is the result of only A* and the red line is the result of a line of sight" algorithm that uses ...
4
votes
0answers
142 views

How to do a genetic algorithm's chromosome which controls movements

First I would like to inform you that I'm french and 15 so my english is not very good. I've read some articles about genetic algorithms (GA) and since I discovered the HTML5's canvas element, I can ...
-1
votes
2answers
133 views

How do I make a 2D platformer AI aware of its allies?

I'm trying to develop a 2D platformer AI that is aware of its buddies and tries to not overlap with them. However, I always end up with an "snake": I dont want them to be so robotic, but instead ...
0
votes
0answers
25 views

how to move object using angle (sin, cos, acrtan) [duplicate]

How to move enemy toward player using angle? I plan is to find angle between two points(player and enemy) and move enemy using that angle. find angle between player and enemy. double xDiff = ...
1
vote
1answer
102 views

Slow Update to improve performance?

For my enemy AI, I only need decision making to be done every second or every half second. Would it make a meaningful difference if I didn't run the analyzing method in the Update, but rather invoked ...
2
votes
2answers
75 views

Developing AI for Zatacka

I am trying to develop a stronger AI for the popular game, Zatacka. The basic aim of the game is to survive the longest. It's like the TRON game, but the characters can only turn smoothly, instead of ...
0
votes
1answer
85 views

How could I control an air hockey 's AI paddle?

I am making an air hockey game on Android with Box2D and libgdx. For the manual control, I just use the MouseJoint and it works perfectly. However, for the AI control, there is a problem: I've made a ...
1
vote
2answers
59 views

AI movement is fragmented when following player

I'm making a 2D game with two spaceships flying around and shooting at each other. One is controlled by the player, the other by the AI. Currently, I have the AI always try to get inside a certain ...
0
votes
1answer
84 views

How do I implement following behavior with a state-based AI? [closed]

I'm making a 2D game with two spaceships flying around shooting each other. One spaceship is controlled by the user, the by an AI. I want to use a simple Finite State Machine (FSM) for the AI. I'm ...
8
votes
3answers
445 views

Can I jump from A to B?

I'm making some rudimentary AI for my side-scroller and I need to know whether an AI unit can reach point B from point A simply by taking a jump. Flight trajectory of my characters is a bit unusal as ...
5
votes
4answers
455 views

Can Neural Network play tic tac toe? Is this have any common sense?

I'm thinking about theoretical possibility of playing tic tac toe by neural net. Is this have any common sense? Let's consider tic tac toe which contains 3 rows and 3 cols (it's 9 cells). Ok, then the ...
7
votes
3answers
246 views

How to take into consideration gravity when moving AI

I'm making a 2D game. There is currently a helicopter flying around, controlled by the player. It's controlled using the arrow keys: UP, LEFT and RIGHT. It's speed along the y axis is dy, and speed ...
0
votes
1answer
59 views

Integer linear program solver based AI

Is Integer Linear Programming a viable solution for a turn based game AI? My current AI solution uses an ILP solver. If you are unfamiliar with ILP, it uses a collection of Booleans to find most ...
0
votes
1answer
114 views

How can AI compute movement in 2D games

I know how to create a basic AI for a game, where the AI simple creates units that only march forward. The AI only decides when to create a new unit, taking into account a number of considerations. ...
1
vote
2answers
208 views

Change AI steering behavior's direction to 8 directions

I am making a 2d soccer game, all players move in 8 directions, so I need to convert AI steering behavior(like arrive and pursuit) into 8 directions. Here are three example situations: Player(now is ...
0
votes
0answers
29 views

Steer a flock towards a target? Like in pikmin? [duplicate]

Can a flock be steered towards a target ? I've seen that flocking behavior has the alignement behavior, but can it be directed and steered toward a goal ? ...
1
vote
3answers
354 views

How can I notify my AI systems that a target has died?

I am currently building a game focusing on AI for my university and this is my first time writing such a complex AI system. Naturally, I ran into a little logic problem: In the game, the AI uses a ...
4
votes
1answer
192 views

How can I test if an object will “fit” during pathfinding?

I'm tinkering around with a 2d game where obstacles are polygons of arbitrary shapes, sizes and locations, and movable entities (players/enemies) can also be of arbitrary sizes. What's a good general ...
0
votes
1answer
133 views

Movement / aiming algorithm in 2d / tiled based game

I'm trying to create simple 2D / tiled base game in JavaScript. Entities are able to move by any number of pixels, but only in one direction at once (can't go in diagonal way). AI for enemies is ...
1
vote
3answers
317 views

Calculating 2D Physics Prediction of Shot Angle with Moving Velocity of both targets

I currently have the math right to hit a moving target with 99% accuracy as long as I don't move. When I start moving the aim is nearly 80%, it should also be 99% accuracy because the target is moving ...
1
vote
3answers
145 views

Simulating (Human) Needs? [closed]

How can I simulate the vegetation (of a human being)? To simulate Hunger for example, I use some kind of saturation based system now. Means that every food-object saturates differently and the ...
1
vote
1answer
114 views

How to handle animations for a turn based deterministic game?

I have a turn based combat system where all monsters act one turn, then all players, etc. The combat mechanics are completely deterministic - I can pre-calculate the outcome of a turn. I'm interested ...
1
vote
1answer
80 views

Where can I find info on grid based algorithms for stateless AI? [closed]

There seems to be an overwhelming amount of info out there on AI of all kinds, and it's kind hard to digest at once. For my testing purposes, I'm creating a "typical stateless AI", as described in ...
0
votes
1answer
91 views

Entity's FSM and exposing internals of the entity

I'm trying to implement FSM according to Programming Game AI by Example, it is a pretty standard and straightforward FSM that goes like similarly to this (some stuff omitted and translated from C++ to ...
1
vote
1answer
65 views

PID controller error value for heading correction

I'm using a PID controller in my AI to steer my NPCs to a desired heading (by adding torque). I've adapted the code from here: ...
0
votes
3answers
175 views

How to program an enemy to attack when someone gets near it?

Like in free-roam RPGs, like Skyrim, I want to make a super-rudimentary screen with just two objects: player and enemy. The enemy will walk around randomly through AI algorithms, and will only fight ...
0
votes
3answers
184 views

Creating a hostile Mob

So I'm currently developing a 2D top down view java game. I have a mob called "Mutant" that currently does nothing. It generates a random number and depending on that number moves a few pixels in that ...
2
votes
1answer
136 views

Behavior trees - Can sequences and selectors contain conditions?

I can't wrap my head around this. Is it legal for parent nodes to contain additional logic ?
0
votes
3answers
344 views

Basic 2D Enemy AI

This is the basic layout of my game: http://www.youtube.com/watch?v=qcd-CcKWjGU&feature=youtu.be To make him move I just made it so you click left or right to move, just for a test. Anyway, I ...
1
vote
1answer
254 views

Behave Plugin : Behavior Tree Perpetually “Running” actions Prempting problem

I am using the Behave Plugin to make behavior trees for my game So, I have a behavior tree that looks like this : http://imagebin.org/278510 The Actions marked in Red are basically Perpetually ...
1
vote
1answer
104 views

When to use AI prediction in a Fighting Game

I am making a fighting game AI that can predict the player's next move using a N gram predictor. Once I have the prediction, when do I use it ? Do I wait till player makes a move and then use the ...
0
votes
0answers
58 views

how to stop enemies from moving to one point when lots of them are chasing one object [duplicate]

i am making a top down game which lots of enemies are chasing one guy. then,enemies would move to one point without any collision,they just overlay each other. so ,is there any simple way to make ...
2
votes
1answer
100 views

Behaviour Trees with irregular updates

I'm interested in behaviour trees that aren't iterated every game tick, but every so often. (Edit: the tree could specify how many frames within the main game loop to wait before running its tick ...
4
votes
1answer
271 views

Do I need path finding to make AI avoid obstacles?

How do you know when a path-finding algorithm is really needed? There are contexts, where you just want to improve AI navigation to avoid an object, like a space -ship that won't crash on a planet ...
3
votes
3answers
336 views

Math to steer a car

I'm in the early stages of a city driving simulation project, and I'm having trouble with the math to determine how the AI should steer the cars. My car model is very simple, with nothing like ...
0
votes
2answers
111 views

Is my calculation of chances correct for my AI?

I'm working on a turn based game where one part is pretty much like playing "Memory": remember where a specific card is located in a grid. My AI works like this: If a card is peeked (turned around ...
0
votes
1answer
111 views

2D motion synthesis for a human character

I want to make the player controlled character of my two dimensional sidescroller responsive to environmental forces, while still being controllable. I read about the commercial software product ...