Questions tagged [behavior]
Behavior is the set of actions taken by an agent based upon its decision making system. Behavior is the applied result of the AI directing an agent. Questions on behavior should focus on actual or desired results of AI
44 questions
0
votes
1
answer
198
views
Are GOAP & GBAB (Goal based agent behavior) the same thing?
I am reading Programming Game AI by Example. It shows a technique called Goal Based Agent Behavior, which seems very similar to GOAP.
Are these the same, or there are key differences of which I should ...
1
vote
1
answer
158
views
How should I share the states amongst all the executions of a Behaviour Tree triggered from all ticks?
I'm still learning about Behaviour Trees and my understanding of the "blackboard" is essentially a state object. When passing the state object through the ticks to the function calls (which ...
0
votes
0
answers
609
views
What is the earliest documented use of behavior trees?
I'm curious about when behavior trees first appeared in the context of AI design. I've looked at many sources (e.g., GDC talks, academic literature such as Behavior Trees in Robotics and AI: An ...
1
vote
1
answer
286
views
How to create the slow random movement effect you see in shmup enemy idles?
I’ve noticed in a lot 2D shmups, after enemies accelerate onto screen and arrive at their arrival point, they don’t simply sit static at their arrival position, but rather begin to gently move in ...
1
vote
2
answers
743
views
Minecraft Bedrock behaviors: drop items for player/owner?
I'm making a simple behavior pack for Minecraft's Bedrock Edition for my own experimenting - the aim is to get tamed wolves to play fetch. The behavior pack is valid and loading, as it sort of works, ...
1
vote
3
answers
451
views
How to force a sub-optimal path
I'm currently trying to develop a "Taxi-Driver" AI that intentionally makes sub-optimal pathing decisions. I need to have my driver go from point A to point B using a sub-optimal but still logical ...
0
votes
1
answer
1k
views
Finite State Machines for Enemies (AI vs. Entity States)
Finite State Machines are a great tool for simplifying a system where an Entity has many states it can be in with different conditions that determine what state to transition to. This works well for ...
2
votes
1
answer
106
views
Behaviours: Should I always return a reference to the behaviour on its methods? [closed]
I'm writing a small game to sharpen my programming skills, and I've chosen to use behaviors (that basically is a class that modifies its parent, to do things like movement, damage and stuff) to avoid ...
2
votes
1
answer
2k
views
How to ensure a condition in a behaviour tree when processing following nodes?
Example tree (Source):
As far as I understood, a sequencer iterates over the children until one failed or all are successful. If one children returns "running", the sequencer will start to process ...
6
votes
3
answers
6k
views
Behavior Tree with interrupted sequence
I'm reading up on Behavior Trees and would like to know how a good implementation for a scenario where the conditions can change or where a selector with a higher priority interrupts the current one.
...
2
votes
1
answer
2k
views
Construct 2's Scroll-to too small?
I'm making a platformer that wants the screen to closely follow the player, and I know I need the Scroll TO behavior.
However, when I tried to make the screen move to the player, I get this:
As seen ...
1
vote
1
answer
145
views
Detecting Groups for Formations
In Starcraft 2, unit formations are created when a "group" is generated from a command. Generally, the rules for a group are:
All units in the group are in the same spatial "clump".
All units in the ...
7
votes
2
answers
4k
views
Game AI. Behavior Trees struggles
I'm writing a bot for a MOBA game as final project.
Game status is read directly from the screen (that's the requirement).
Now I have come to the AI part. On the first steps it started as some basic ...
4
votes
2
answers
4k
views
Event Driven Behavior Tree: deterministic traversal order with parallel
I've studied several articles and listen some talks about behavior trees (mostly the resources available on AIGameDev by Alex J. Champandard).
I'm particularly interested on event driven behavior ...
2
votes
2
answers
1k
views
Should character actions be considered states?
So I've been on a team that has been working on a game for quite a few months now and we're hitting some really nasty bloat problems with our character actions.
Question in bold. Accompanying ...
6
votes
1
answer
3k
views
Can a behavior tree represent the same logic as a finite state machine?
So I was just learning about Behaviour trees and I thought they're really cool. So I decided to use them in my games. But what I don't quite understand is:
Short: Can everything done in an FSM, be ...
4
votes
1
answer
2k
views
Running state in Behavior Trees
What happens, in a behavior tree, when a priority node chooses another branch over a running branch?
Small example:
...
8
votes
2
answers
3k
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 ...
-1
votes
2
answers
997
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 ...
3
votes
1
answer
1k
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 ?
1
vote
1
answer
756
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 ...
2
votes
1
answer
514
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 ...
2
votes
1
answer
207
views
Using an FSM, how do you clean up state related attributes that may be used from several states?
I'm making a game that plays a bit like Diablo, but you can harvest resources like in an RTS.
I have the following states in my FSM: IdleState, ...
4
votes
1
answer
253
views
How can one impliment multiple control schemes for a single player?
I am working on a platformer and I want to have the player be able to switch control types based on items that may be carried + default controls for things such as water, in the air, on the ground etc....
0
votes
1
answer
952
views
How to implement tile enemies behavior? [closed]
I'm having a difficult time to understand , how to implement the behavior of an enemy in a tile based game,
movement
attack
behavior per enemy level ( higher level enemies should be hard to kill)
...
19
votes
1
answer
6k
views
Behavior Trees :: Actions That Take Longer Than One Tick
From what I understand on Behavior Trees, each Behavior should be a short goal oriented Action that could be done in a few iterations.
So for example, below is an image of a Behavior Tree:
Now let us ...
1
vote
3
answers
929
views
Reward volatility of League of Legends matchmaking system
According to this article in league of legends matchmaking there's an average of 50/50 chances of winning or loosing a game based on how system ranks a specific account (player skill). However this ...
7
votes
1
answer
1k
views
Can a rules engine produce manageable and complex AI?
I am currently in the middle of creating an AI village simulation in Java. Having implemented a simple rules engine for dialog, I am wondering if this DSL can be extended for AI. I have previously ...
9
votes
1
answer
4k
views
Component/Entity-based design + Behavior Trees => how to integrate?
For my current project I implemented a component/entity-based system, basically following most of the best-practice there is in this rather undefined area.
So I got (slightly extended) Entities, ...
2
votes
1
answer
2k
views
Behavior Trees and Animations
I have started working on the AI for a game, but am confused how I should handle animations. I will be using a Behavior Tree for AI behavior and Cocos2D for my game engine.
Should my "...
2
votes
1
answer
1k
views
Space invaders clone not moving properly
I'm trying to make a basic space invaders clone in allegro 5, I've got my game set up, basic events and such, here is the code:
...
2
votes
1
answer
144
views
What is a trainer from a coder prospective?
What steps usually takes or modify a trainer?
How a trainer can change the way a game behaves?
Edit:
with the word trainer I mean the applications, usually a single executable, that can unlock and ...
4
votes
1
answer
283
views
Winning isn't everything (organic Hierarchy)
Suppose that you have a simple online browser based game* in which the characters are all landed nobles - Barons.
When the game starts all players are on relatively equal footing.
There is a game ...
0
votes
2
answers
360
views
DX11 - Weird shader behavior with and without branching
I have found problem in my shader code, which I dont´t know how to solve.
I want to rewrite this code without "ifs"
...
3
votes
1
answer
703
views
Attributes and Behaviours in game object design
Recently I have read interesting slides about game object design written by Marcin Chady Theory and Practice of the Game Object Component Architecture. I have prototyped quick sample that utilize all ...
4
votes
2
answers
1k
views
Bejeweled-like game, managing different gem/powerup behaviors?
In general, what I am asking is, given any game where a game element can look/behave/affect-other-elements one way under one set of conditions, and look/behave/affect-other-elements a different way ...
11
votes
2
answers
2k
views
Implementing behavior in a simple adventure game
I've been entertaining myself lately by programming a simple text-based adventure game, and I'm stuck on what seems like a very simple design issue.
To give a brief overview: the game is broken down ...
1
vote
1
answer
568
views
What exactly is the difference between separation and obstacle avoidance
I've been reading some literature that explains both separation and obstacle avoidance. On first sight, they both seem very similar in what they are supposed to do: keeping objects apart form each ...
5
votes
2
answers
2k
views
Can the player character and static entities use behavior trees instead of state machines?
When I read discussions about state machines vs. behavior trees, it is often in favor of using one over the other. However, this seems odd to me that you wouldn't still need a state machine to manage ...
6
votes
1
answer
1k
views
Techniques for bot movement in (first person) shooter games
I was wondering what kind of technologies were used in FPS games to move bots around the level. I know the pathfinding is done using waypoints or navigation meshes but how do the bots actually rotate ...
9
votes
4
answers
3k
views
Is BDD (Behavior Driven Development) used in games?
I have been reading about BDD - Behavior Driven Development for a while, and I find it really easy and usefull to convert features into code. BDD users often call it TDD done right.
BDD is a tool for ...
23
votes
1
answer
23k
views
Behaviour tree code example?
http://altdevblogaday.org/2011/02/24/introduction-to-behavior-trees/
Obviously the most interesting article I found on this website. What do you think about it ?
It lacks some code example, don't ...
6
votes
2
answers
712
views
How can I separate entities from their actions or behaviours?
I'm having a go at creating a very simple text based game and I'm wondering how I can design the entities (characters, sentient scenery) with regards to the actions those entities can perform.
As an ...
11
votes
3
answers
1k
views
How do I make complex AI manageable? [closed]
In the past, I've used simple systems like finite state machines (FSMs) and hierarchical FSMs to control AI behavior. This pattern falls apart very quickly or any complex system.
I've heard about ...