# Adding NPC's to a game

**URL:** <https://forum.makecode.com/t/adding-npcs-to-a-game/6850>\
**Category:** Help\
**Created:** [March 18, 2021, 8:50pm UTC](https://forum.makecode.com/t/adding-npcs-to-a-game/6850 "2021-03-18T20:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieisgood889](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pieisgood889](https://forum.makecode.com/u/pieisgood889)\
**Post date:** [March 18, 2021, 8:50pm UTC](https://forum.makecode.com/t/adding-npcs-to-a-game/6850/1 "2021-03-18T20:50:07Z")

</div>

Hey, I’m pretty new to MakeCode (and coding in general) and have been using blocks to make my first game. I was wondering how to make a sprite an NPC you could talk to. Is there already something for that? Because when I’ve been creating my spite I’ve come across two difficulties, one, my sprite never spawns at the coordinates I choose to put him at, even though the player sprite does. Secondly, I don’t see a way for the player to speak to this NPC. Anybody have a solution?

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 19, 2021, 1:54am UTC](https://forum.makecode.com/t/adding-npcs-to-a-game/6850/2 "2021-03-19T01:54:40Z")

</div>

You gave me an idea for an extension! The easiest way is creating a new kind, an on but ten pressed, then check if the NPC is touched. This should not be too hard tho.

---

<div class="post-metadata">

**Author:** ![pieisgood889](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pieisgood889](https://forum.makecode.com/u/pieisgood889)\
**Post date:** [March 19, 2021, 7:30am UTC](https://forum.makecode.com/t/adding-npcs-to-a-game/6850/3 "2021-03-19T07:30:28Z")

</div>

I would agree, and I think I’ll probably try making something like this. It seems like something such as NPC’s would be standard for MakeCode’s video game creating format.

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [March 19, 2021, 4:28pm UTC](https://forum.makecode.com/t/adding-npcs-to-a-game/6850/4 "2021-03-19T16:28:05Z")

</div>

I know how to talk to an NPC, @pieisgood889 !
