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

learn more… | top users | synonyms (1)

0
votes
1answer
43 views

How to search for a visible player?

I've an enemy static tank with a "rotable" cannon turret. I would like to rotate it in the player's direction . How to implement it ? I've thought something like void Update { SearchForPlayer(); ...
-1
votes
0answers
57 views

Which algorithm should i chose for the AI of this game?

I've made a game where player have to places white or black circles on a line horizontally or vertically or diagonally. Possible path (circles can move) are marked as black line. So if player ...
1
vote
0answers
59 views

How to implement a Behavior Tree (preferably in Unity 3D)

I have a state machine I want to implement as a behavior tree. I now have an understanding of how they work but I can't seem to find a full implementation of one. I have implemented a simple one using ...
3
votes
1answer
131 views

How do I get A.I. that follows a list of movement commands to move smoothly in a tilemap based game?

This is for a school project so it's not intended to be sold/fun/or a complete game, rather just a demonstration of stuff we've learned without resorting to frameworks and stuff. My ai agents choose ...
0
votes
0answers
54 views

Basic chasing AI - deciding speed

We're working on a simple game where the player is pursued upwards by a malicious entity. I'm not sure on the best way to go about doing this, taking into account the following points: This is a 2D ...
-2
votes
0answers
16 views

Platformer AI chasing the player in Construct 2? [duplicate]

Is there any way to create enemy AI which chases the player across platforms when the player jumps from one to another, which then the enemy also jumps with the player? If so, how do I do it? (example ...
1
vote
0answers
93 views

Libgdx and gdx-ai: How to implement wander behavior?

So I follow the original gdx-ai documentation and created 2 circles to test Steering behavior. The image shows arrival behaviour but I am still quite lost about how they work. Screen class: public ...
-1
votes
1answer
63 views

Choosing AI strategy

How would I choose to design an AI that would know the rules of the game, however not know the game world before hand? Given fx. a Sokoban game, I could teach it using Reinforcement Learning to play ...
5
votes
4answers
377 views

How to design a turn-based game which is easy for humans but difficult for AI?

Until recently, Go used to be of the last bastions of turn-based no information-hiding games where world-class human players could not be defeated by computers. But now this bastion has fallen, as the ...
3
votes
1answer
103 views

Should enemies still attack if they cannot see the player?

This may seem like a silly question, but let me explain this further. Consider a common stealth situation where the player is hidden from the enemy AI. The AI has vision and hearing and if they ...
0
votes
0answers
31 views

AI models with prioritised tasks

I'm searching around for models to implement a (simple) AI in a RPG game and was hoping you could give a direction (and possibly, a Java implementation if you know one). This is the thing I'm hoping ...
1
vote
1answer
38 views

Efficiently detect shoot direction with gravity playing a role?

How could I efficiently calculate shoot direction for enemy AI in order for it to hit the player? Things I know: player position, player velocity, gravity, bullet spawn position, bullet initial ...
1
vote
2answers
62 views

Adversarial Search AI having problems with too many choices

I'm a game designer working with a set of coders trying to create a card game. Currently we're trying to implement a drawing mechanic in which you choose which card you draw, but the Adversarial ...
1
vote
1answer
68 views

Online AI competition

I would like to create a framework that would allow user to compete with his AI code against other player AI online. The problem is that I don't know how should server simulate the fight online. If ...
5
votes
2answers
942 views

AI multithreading [closed]

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ...
1
vote
0answers
123 views

ECS: AI components and systems

I'm trying to find the best design pattern for my AI code using an ECS. Right now the entities that act as CPU-controlled have components like: WeaponComponent ChargeComponent MovementComponent ...
1
vote
0answers
35 views

Examples about how to tie AI actions to animations?

I wrote a simple test AI for a character; and all that it should do is to be idle while a parameter is below threshold; otherwise it should perform actions based on other parameters. So for example ...
5
votes
3answers
367 views

Optimize algorithm: finding all possible moves for a turn based game

I am working on the ai for a turn based game. To illustrate my problem this are the simplified rules of the game: The game takes place on a tiled map with obstacles (black quads) like this: The ...
1
vote
0answers
161 views

Tip on turn based game AI

I'm quite new in video game AI, and I'm trying to design an AI for a turn based game. The rules are simple: The battle field is represented by an NxM board. The game is between two team, each team ...
-3
votes
2answers
210 views

Random AI Movement

So I'm creating a zombie game where the zombies are passive and just walk randomly all over the area when player is not near. My question is: how would I make zombies move randomly? I code in C#. ...
1
vote
1answer
76 views

How do I structure AI that uses both Behavior Trees and Pathfinding?

Architecturally, what are the best practices for how these two concepts interact with each other? For instance, say I have an asteroids like game where the AI player must dodge floating asteroids ...
0
votes
0answers
71 views

Monte Carlo Tree Search (MCTS) for General Game Playing (GGP)

I am trying to implement a MCTS with UCB (upper confidence bounds) to balance the relation between exploitation and exploration. A lot of General Game Playing (GGP) agents have implemented this and ...
4
votes
1answer
542 views

When to use a blend tree vs state machine for animation

Im an experienced game dev hobbiest making my first game with 3d animated characters (in Unity) and am struggling to figure out when to use blend trees vs animation state machines. I understand both ...
60
votes
2answers
13k views

What is unit slotting?

I was watching the "Devs Play" S01E05 where JP LeBreton sat down with John Romero and played through Doom, while Romero would explain some of the game/level design choices they made. There are loads ...
0
votes
1answer
52 views

FSM AI design with no accept states

I'm new to game development and design, I've been looking forward to doing FSM AI design as it seems interesting to me, but I have a question that I see no answer for in the internet. I've seen FSM ...
4
votes
0answers
114 views

AI using character controller makes unwanted change to it's y position

The enemy parent object does not have any colliders except for the character controller. It starts out with y = .57 and immediately jumps to y=1.6355 because of my call to CharacterController.Move(.) ...
1
vote
1answer
81 views

Is reinforcement learning overkill for a vehicle steering bot?

I'm slightly familiar with the reinforcement learning (through this edx.org MOOC). Also I'm aware of reactive planning technique. I want to write a vehicle bot for a racing game, where cars have to ...
3
votes
1answer
129 views

Effective AI for 3D Motion

I am developing a game in XNA and am trying to create an effective AI for the enemy and friendly spaceships but am having a hard time keeping the game effective without disadvantaging one side or the ...
1
vote
0answers
15 views

Why BlackBoardValue Says Invalid And False? UnrealEngine4

Think my ai do not move towards the sound because of the blackboard keys , one says invalid and another says false , i think that is the reason.... Enemy Ai should move to the location where sound is ...
2
votes
1answer
114 views

How to prune an AI game tree for a game like Magic?

I've got a game tree structure for my AI that I need to trim in order to gain some depth. It is a single-player game of perfect information. A good analogy would be a single-player game of Magic the ...
4
votes
0answers
92 views

Conceptual question regarding Belief-Desire-Intent agent

I've been researching the Belief-Desire-Intent model and the way they used it in the original Black and White Game(which is the same, but they also defined decision trees as opinions). I have a ...
3
votes
2answers
225 views

How to compare different states of my game? (rpg)

I'm working on a rpg, the battle system. I want to compare different scenario with each other. For example, what if I play move A then move B ? or two times move A ? or ...? I'm using a ...
0
votes
0answers
134 views

spaceship movement ai in 3d space

how to control spaceship. let it movement like spaceship movement in 3D space. All the steering behavior on the internet is 2D. And when agent seek or arrive to point behind, it's direction turn back ...
3
votes
1answer
202 views

Need some general direction for turn-based planning AI

I'm planning to make a turn-based fleet battle game. While I think I can figure out most of the things I need, I have no idea about the AI handling this sort of game. I need some general direction ...
5
votes
1answer
306 views

Neural Network ai evolution?

I've created a small simulation game and I have a basic neural network in place, each "creature" in my game has random weights on it's nodes and they all behave differently. Their goal is to stay ...
3
votes
1answer
336 views

Steering behaviours: collision avoidance with rectangles

I'm trying to implement collision avoidance steering behaviour using rectangles. Most of the tutorials I've found are with circles, and there's a substantial difference. For example, I've been reading ...
1
vote
2answers
84 views

Calculating the vector to catch a falling object

I have two objects in a three dimensional world. One is a ballistic projectile: that is, it is free-falling with some known gravitational acceleration. The other is a catcher that travels with ...
0
votes
1answer
108 views

libgdx FollowPath proper usage

I'm developing top-down rpg game and got some problems using https://libgdx.badlogicgames.com/gdx-ai/docs/com/badlogic/gdx/ai/steer/behaviors/FollowPath.html I have a path (picture 1), in this case 2 ...
5
votes
1answer
252 views

AI pathfinding in mostly-free space

I'm working in an action/strategy proyect. Consider it a RTS game. The game is in 2D (with LibGDX), and I have a lot of soldiers moving along. Now I have to implement the AI. Let me say some things ...
1
vote
0answers
78 views

What is the best way to implement AI Player on Quiz Game? [closed]

I need to implement a AI Player on a Quiz Game. The quiz is based on Jeopardy! TV show. I was thinking about what is the best manner of create a simple but usable AI algorithm to play with machine. ...
3
votes
1answer
201 views

Local avoidance together with any-angle types of A* Pathfinding

Recently I have been implementing the Block A* any-angle path-finding algorithm in a project I have, for which I need extremely efficient results due to the large number of NPCs. However, I still do ...
0
votes
2answers
163 views

Fixing enemy behavior state machine in Unity

I'm working on a state machine for my game's NPC. The only thing I can't to get work properly is the hit sequence. The hits register. What I would like to happen is for the attack sequence ...
0
votes
1answer
158 views

Improve (adding randomness) minmax algorithm for Connect Four

I have implemented the minmax algorithm for the Connect Four game. It works well (almost...), but if the player does the same moves, the computer will do the same moves as well, for each match. There ...
0
votes
1answer
59 views

Collision Detection in Wander behaviour

briefly, this is the overall look and feel of my game: I have a player and I have an enemy in my map. i tried to learn collision from SaladRaider Youtube channel. collision using chasing method works ...
0
votes
0answers
61 views

Faulty AI for Connect Four game

I'm trying to implement the mixmax algorithm (without alpha-beta pruning yet) for the AI for the Connect Four game. I know that there are a lot of papers with the best rules to handle this kind of ...
2
votes
1answer
113 views

Given a 3d goal point and a turn rate in radius, find max speed to reach goal

I'm working on a 3d space sim with AI agents flying ships through space. I am trying to get them to follow a waypoint path nicely, which involves figuring out how fast they can be travelling and still ...
0
votes
1answer
83 views

How to configure A* for large 2D Grid based pathfinding, where paths could be long or short?

I thought A* was Optimal, meaning I'd always get the quickest path. I have written a generic Pathfinding implementation here: ...
0
votes
0answers
66 views

Goal keeper AI with animation

I'm working on football simulation game. I am trying to implement Goal keeper AI. I did calculated ball trajectory and intersect point. I wanted to Goal keeper to dive to the interaction point and ...
14
votes
2answers
680 views

Good way to handle offscreen AI?

For example sake: Let's say there are 10 rooms in the world. And let's say the world is inhabited by 10 entities. And each entity has it's own "daily routine" where it performs certain actions in ...
3
votes
1answer
261 views

Wander steering behaviour in 3D

I'm trying to implement the Wander Steering Behaviour but getting strange result (see .gif). What am i doing wrong? I want to move a sphere in a random direction. I read this article Understanding ...