Questions tagged [ai]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How do I define my pool of Actions in such a way that they depend on variables in GOAP?

I'm attempting to implement GOAP in my game. The game is a simulation-type game that would not only benefit from GOAP, but is almost essentially a requirement based on the scope of what an agent can ...
0
votes
1answer
32 views

Algorithm for chase by multiple enemies

If I have one enemy that should chase the player, I can use a path-finding algorithm such as BFS to find the shortest path from the enemy to the player (taking into account obstacles along the way), ...
0
votes
0answers
17 views

Unreal AI with behaviour tree not moving

I am making a very simple blueprint. I am making an AI that goes to the player character position. For this, I had made: A Enemy Blueprint, so it would serve as a general enemy management. A Enemy ...
0
votes
1answer
32 views

Mathematical equation for CHOMP AI?

Players take turns in taking a rectangular bite out of the bottom right corner of the bar, by shading a square, tighter with all the squares below and/ or to the right it. The top left-hand square is ...
0
votes
1answer
42 views

How do I get my team NPC to follow the player? | Game Maker Studio

I would like to have 4 teammate NPC's that would follow behind the Player. First off, I know how to get the movement and collisions working properly but getting the NPC's to follow the player is where ...
0
votes
1answer
31 views

Enemy gun won't aim properly when collision line is flipped | Game maker studio

When the enemy move's to the right their gun faces right. When they move left the gun will face left as it should. When the player collides with the enemy collision line on the right side, the enemy ...
0
votes
0answers
11 views

Unity Using animation curve to lift Navmesh agent

I am trying to make my bird ai take off and fly. I am using an AnimationCurve to try and make the transition from ground to flight more natural. Here is my code: <...
1
vote
1answer
65 views

How can I my homing missile avoid walls (2D)?

Okay, I have the homing missile implemented. It will follow the player, but I want it to avoid the walls. I tried out A* but I want to make my own. I need some help plzz.
0
votes
1answer
52 views

Make enemy follow player intelligently

I was trying to make a script to make my enemy follow my player intelligently (but not too much) and I want to know if there was a better way to do it (of course there is but I wanted to find a way ...
1
vote
1answer
44 views

AI Conversation

I am trying to create a conversation system for a crowd simulation AI. The way I am currently approaching this is by doing a check if bot1 sees bot2, than I pick a point for them to meet and they meet ...
0
votes
0answers
10 views

Unity: How to prevent animation from twitching when combined with Navmesh Agent

I am trying to make a third person shooter in Unity and trying to implement a zombie that follows the player and when close to player, attack animation is played. I am using the NavMesh Agent for that ...
0
votes
0answers
23 views

Heuristic for Board Game AI Resulting in Tie

I'm developing a program for a Line of Action game (see specs here: http://www.boardspace.net/loa/english/index.html) For the AI, I've created a game tree, pretty similar to most game tree ...
0
votes
0answers
18 views

How to code simple Goomba-like AI for 3D Platformer?

I'm making a 3D Platformer and have an enemy similar to a Goomba in terms of AI. How do I get the enemy to walk around and then follow the player when they're in range?
0
votes
1answer
53 views

AI does not stop walking like it is supposed to, instead spins in place and lags game

I've got this very simple enemy AI that follows the player and is supposed to stop and shoot at the player when he enters a trigger, however it doesn't seem to do that it doesn't stop or shoot. This ...
0
votes
0answers
26 views

Finding the site of the potential collision between 2 vehicles

I've been trying to implement the unaligned collision avoidance steering behavior. I get what needs to be done on a high level, but struggle with the maths behind it. On Craig Reynolds site, he ...
1
vote
2answers
85 views

Agent trying to reach same position as other agents, instead start spinning in place

I create units in my game and have a rally point where they should walk to when created, like Age of Empires. My problem is that since they compete for this position after a while, sometimes they end ...
0
votes
0answers
28 views

How to follow target player on a waypoint graph?

Situation: It is an AI agent (yellow box) and a player (blue box) in the game. There are waypoints (red circles) placed on the map. The AI should follow the player. The pathfinding algorithm runs on ...
21
votes
4answers
9k views

How to make AI detect a target behind a wall, who is only partially exposed?

I'm making an FPS game where, even when a target's whole body is behind a wall or box, but its finger or foot exposed, the AI should be able to detect it and shoot its finger. So far the way I've ...
0
votes
0answers
34 views

Minimax implementation problem

it's my first time posting so apologies in advance if the format is weird. I'm developing a board game that's very similar to checkers/chess and I've faced some problems implementing the minimax/...
0
votes
0answers
37 views

How to assign xNode graphs to an active object?

I am trying to create a basic AI using the xNode visual scripting tool. The getting started guide from github is not showing how to assign the created graphs to an active object (if this is even how ...
0
votes
1answer
52 views

Design pattern for AI cooperation

I'd like to implement an AI for my game, which has agents that should be able to take care of themselves. The Sims use a system of smart objects that advertise their services, a design pattern that ...
0
votes
0answers
21 views

AI Help - Simulating my game for decision making (Monte Carlo)

My game is a tile based tactical rogulike similar to Final Fantasty Tactics. Characters can move to any square within their movement range on every turn , and perform as many other actions as they can ...
1
vote
1answer
133 views

Turn-based combat AI with multi turn planning

My current AI system uses the now very common utility AI. I generate a list of possible actions, I then calculate fitness score for each action and generate a list of possible chains of actions (Move >...
5
votes
2answers
107 views

How to avoid units with different destinations blocking each other in corridors?

I'm making a roguelike in which enemies wander around the map until they're detected by the player. They each have random destinations, so sometimes their destinations conflict and they block each ...
0
votes
0answers
44 views

Agent stuck with each other

As the title. I have stuck on this: When many agents have same destination, they will be stuck with each other. I want they find a new path as character in the picture a attached below How can i make ...
0
votes
1answer
113 views

Struggling to get AI to repeat infinitely

I am following this as a guideline to help me figure out a simple AI for an enemy as I am new to java. https://www.javacodegeeks.com/2014/08/game-ai-an-introduction-to-behaviour-trees.html https://...
0
votes
1answer
30 views

Manually update rotation of only Y-axis on Agent

I have some code to manage to rotation of my Navmesh agents: ...
0
votes
1answer
168 views

2D party follow the leader in Unity?

I am attempting to make a 2d side-scrolling platformer where the player collects other characters as they advance through the levels, like you would in a classic top down rpg. However, I am having a ...
0
votes
0answers
25 views

Unexpected changes in Ai population

I've been trying to do my first evolution script. I want my population to learn to walk in 3d space. I am getting issues with the movements and the mutation. In my script, they evolve based on certain ...
3
votes
2answers
236 views

Moving large group of units 1 by 1 takes too long, how can I improve this?

I use use Unity's own NavMesh/AI system and I think it works pretty well. The only problem I have is that when I move large groups of units, they will find a path one by one, but it takes a really ...
0
votes
0answers
36 views

Improving Utility AI to have “strategy thinking”

Consider Utility AI - where an agent is decide its next move by the one that gains the maximal utility. I wonder what general tweaks/improvments there are to this model in order to make it with a bit ...
0
votes
0answers
56 views

Unity - Moving X amount of units to destination, RTS style movement

I have a reached a point now where I can select X amount of units, and move them to where I click. My problem is, they all try to get to the same point. I use Unity's own Navmesh + agent. I set ...
1
vote
0answers
26 views

Having difficulty integrating flow field with flocking algorithm

I have been tweaking my path-finding in my game for a while now, and it's mostly functional, but there are some major issues that are holding me up. I have a flocking algorithm implemented to help ...
0
votes
0answers
21 views

Steering behaviours that gaurentee not to hit something

I'm really struggling how people make steering behaviours that guarantee a given agent will never hit something. I want to have a flocking algorithm that the agents can follow each other and also ...
1
vote
2answers
125 views

Balance advantage of having the first turn

I'm developing a game in which two players compete for area domination. Each player can play four moves per turn, ideally conquering four tiles. Edit: Here a little more detail on the mechanics: Each ...
0
votes
0answers
129 views

Move Unity NavMeshAgent at a constant speed

My NavMeshAgent randomly changes speed while moving along it's path. It seems to be slower when a segment of a path is shorter (between two waypoints/corners) or when there are many close continuous ...
1
vote
0answers
62 views

RTS Pathfinding without collision between units Options

Ever since I made my units move to a certain location a problem has popped up that of course if I try to make two or more units go to the same place they fight for the same spot. Am I just being ...
1
vote
0answers
53 views

Most efficient way to recalculate enemy A* path on the fly?

I'm working on implementing a more robust pathfinding algorithm for the enemies in my top-down shooter game, and I have the A* algorithm working, but now I need to decide when to calculate the path. ...
0
votes
0answers
29 views

D* lite optimized: what is wrong in my implementation of Search() function?

I'm trying to implement the D*-Lite pathfinding algorithm, as described in the 2002 article by Koenig and Likhachev for grid-based navgraph. But I stuck with problem. My ComputeShortestPath (in my ...
1
vote
2answers
137 views

How can I make my race game fair with all players and keep it climatic?

I'm making a minigame where up to 5 players have to race against AI or another player(the "enemy"). The race consists of prompts, the current player is asked to press a key in a given amount of time ...
2
votes
2answers
109 views

Catan Optimal Placement

Is it possible to calculate the best possible placements for settlements in Catan without using an ML algorithm? While it is trivial to simply add up the numbers surrounding the settlement (highest ...
0
votes
1answer
41 views

How to make a follower script without diagonal movement

I’m working on a 2d game in unity. Right now I’m trying to make a follow ai. Where a character will follow the position of the player. I currently have it set it and working using the MoveTowards ...
5
votes
1answer
207 views

How to Store AI Knowledge about the Game-World for AI Decision Making

I have a game-world with a fair amount of AI that have some Senses, like vision, hearing, touch, smell, etc. But I'm not sure how to put that information in a single place for the individual AI to ...
1
vote
1answer
1k views

How to use TensorFlow in Unity

I am trying to implement a deep reinforcement learning IA with TensorFlow for a checker game in Unity. How can I do this? I've searched for it on Google and found a lot of videos and tutorials on how ...
1
vote
0answers
31 views

Player Ai for games involving scoring goals like soccer, hockey, basketball?

I've been working on a soccer game, and was thinking of different ways to program player AI's and was wondering how they actually work. The concept is probably similar to all games where there are ...
0
votes
2answers
662 views

2D active ragdoll/physics-based procedural animation

I'm trying to make a 2D quadraped robot stand and walk via physics. My robot looks like this. (art is not mine. Source is vapgames) It's rigged via Unity's 2D animation package and each joint/bone ...
1
vote
1answer
43 views

Find the direction a Projectile should be fired from a Moving Object to hit another moving Object?

I am trying to do a simple AI Controller, which fires Missiles at the surrounding targets in the Scene. The AI Controller can fire projectiles when moving or stationary. The Targets are either ...
0
votes
1answer
139 views

Moving an Enemy Toward the Player but only in cardinal+diagonal directions

I am working on a "quick project" to get my feet wet and to put something finished in my projects. I want to make an enemy that constantly tries to be aligned with the player object, but doesn't ...
0
votes
0answers
32 views

How to check in Unity whether tile B can be reached in a straight line from tile A?

I'm currently trying to smooth out my A* paths based on this article. This is what I want to achieve: But sadly I'm stuck at implementing the Walkable method. I ...
0
votes
2answers
156 views

AI Behaviour design pattern which handles lots of diverse behaviours and mechanics?

I'm working on an 2D overhead topdown game in Unity3D and I want the enemies to have lots of diverse behaviours. How should I design the architecture with this in mind? For example I want: A simple ...

1
2 3 4 5
15