Questions tagged [npc]
A "non-player character" is one that is not controlled by a player.
54 questions
1
vote
1
answer
239
views
How to implement NPC that reads player input and counters it?
input reading = NPC reads the input of the player and instantly reacts to counter everything the player does.
So, is it like :
...
13
votes
2
answers
6k
views
What is the canonical name of the interaction symbol over NPCs heads?
More often than not, 2D and 3D games markup interactive NPCs (and objects) with the exclamation mark symbol. Typically yellow. But of course, sometimes it's an "i" or a small cloud, or other ...
0
votes
1
answer
629
views
Data in blackboards of behavior trees
In Ian Millington's "AI for Games" it is stated that behavior trees should not actually own any data, and instead a blackboard can be used to store data nodes of a behavior tree need to know ...
0
votes
1
answer
294
views
Smoothing transition between Animator and script controlled character
I have a NPC which has a strict match logic (bot player), and I am moving it on FixedUpdate(),
However, on certain events in the game I am activating animations ...
2
votes
1
answer
159
views
Is it a good idea to give NPCs unnatural hair colors while keeping that of the PC a natural color?
I don't know if it's the right place to ask or not but:
I would like to color most NPCs’ hair colors orange, green, etc. Do you think this will damage the main characters and secondary characters? (I ...
0
votes
1
answer
519
views
Make enemy move diagonally in 2D
I'm making the enemy follow the player only straight or diagonally e.g.(1,1)(1,0)(0,1)(-1,1).
I expected the problem that I have, but I don't really know how to fix it. When my enemy is placed ...
0
votes
0
answers
116
views
Why don't mmorpgs use bots?
Bots in games can bad and usefull depending on the genre.
A lot of small games use bots to create a fake player base and illude the player that he is playing with real people.
The scariest thing is,...
0
votes
1
answer
281
views
How can I keep track of which "rooms" characters and NPCs are in?
I have a Unity 2D project which has a player character and numerous NPCs all potentially moving (top-down) at the same time during play. The number of NPCs is not to exceed 100 (and will be, probably, ...
0
votes
0
answers
86
views
Abstraction for player, NPC's, and monsters
I am trying to come up with a good abstract term for my players, NPC's and monsters. They can all have stats and inventory. so they all can function in the same way. But some could be humanoids, some ...
0
votes
1
answer
176
views
Help with NPC following the player in a sidescroller
I'm a beginner with C# and am having a bit of trouble coding an NPC that follows the player in a 2D sidescroller. The player has two speeds, a walk and a sprint. I have a very basic companion follow ...
1
vote
1
answer
251
views
NPC Melee fighting movement issue
So i have been struggling with this for ages and I have now decided to reach out for help.
The Problem:
The game has two NPCs for reference we will call them "Ally" and "Enemy"
Ally and Enemy each ...
1
vote
1
answer
105
views
Is there a tried-and-true method for calculating or detecting the edges of platforms?
In terms of a simple 2D platformer, I was wondering if, over the years, a right way has emerged as far as determining whether or not a strolling character has reached the edge of the platform it is ...
0
votes
2
answers
2k
views
How do I get an NPC to follow the player(and stop when it gets within range)
I'm making a game where you have a friend follow you. I have a script that partly works, but when the friend exits the trigger, it won't follow the player.
How do I get the friend to follow the ...
0
votes
2
answers
3k
views
Press f to interact with NPCs or objects
How do I change the method used for initiating the interaction. Instead of clicking object, check if within a certain radius of an object when you hit a key on your keyboard.
If within 1 unit, the ...
1
vote
2
answers
293
views
How could a NPC find items that appear randomly?
My main question is basically: What is the algorithm that CPU players use in smash bros to find items like the smash ball? I am trying to make a small ai character that will "look around" and once an ...