Building a Multiplayer RPG with Meteor & Flutter (3): Interaction with NPC

Matt E.
9 min readMar 1, 2023

In the previous article, we saw a few different ways to work with Map and Decorations.

For this new iteration, we will see how to add Non-Player Characters and interact with them.

Create the NPC object in Tiled

We’re going to define the NPC position and type in Tiled. To do this, we can use the same method we used for the House.

We need to add an object to the object layer. Let’s call it npc. As you will…

--

--

Matt E.

Software engineer at Achiev & Jounco. Passionate about programming and entrepreneurship