Skip to main content

Questions tagged [npc]

A "non-player character" is one that is not controlled by a player.

1 vote
1 answer
239 views

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does. So, is it like : ...
Cei's user avatar
  • 873
13 votes
2 answers
6k views

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 ...
Kromster's user avatar
  • 10.7k
0 votes
1 answer
629 views

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 ...
Ralph's user avatar
  • 23
0 votes
1 answer
294 views

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 ...
Omer Simchoni's user avatar
2 votes
1 answer
159 views

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 ...
Arian_ki's user avatar
  • 691
0 votes
1 answer
519 views

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 ...
Samuel Fyckes's user avatar
0 votes
0 answers
116 views

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,...
Display name's user avatar
0 votes
1 answer
281 views

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, ...
Offlein's user avatar
  • 103
0 votes
0 answers
86 views

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 ...
Andrew Pullins's user avatar
0 votes
1 answer
176 views

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 ...
connorwgardner's user avatar
1 vote
1 answer
251 views

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 ...
Marc Rasmussen's user avatar
1 vote
1 answer
105 views

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 ...
JSON Brody's user avatar
0 votes
2 answers
2k views

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 ...
Indiepixel's user avatar
0 votes
2 answers
3k views

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 ...
J.Wujeck's user avatar
  • 101
1 vote
2 answers
293 views

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 ...
Adam G.'s user avatar
  • 113

15 30 50 per page