Talking to NPCS

  • I'm wondering some opinions on the best way to do this. Currently, I'm creating a blank sprite on each npcs and pinning it the npc. I then set a "if player < 100 pixels from NPC, on SPACE, do the following lines of dialogue".   The only issue I come up with this is if 2 npcs are next to each other, it kind of freaks out.

    This is more of a general question; does anyone have any thoughts on the best way to accomplish an rpg style npc dialogue event?

  • Have the player click directly on the NPC?

  • Mouse is disabled <img src="smileys/smiley34.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The only issue I come up with this is if 2 npcs are next to each other, it kind of freaks out.

    You could add 'pick closest NPC to player x,y' condition and you'll get only one NPC talking.

  • Hey Vee,

    I currently have an exclamation point sprite pop up when you're < 100 pixels from an npc. The pick nearest works with the dialog, but unfortunately doesn't set the ! sprites visible/invisible correctly when I use 'pick closest NPC'. That's why I was hoping of possibly figuring out a way to use Pin UIDs, but to no avail.

  • Hey Vee,

    I currently have an exclamation point sprite pop up when you're < 100 pixels from an npc. The pick nearest works with the dialog, but unfortunately doesn't set the ! sprites visible/invisible correctly when I use 'pick closest NPC'. That's why I was hoping of possibly figuring out a way to use Pin UIDs, but to no avail.

    You could place the ! sprite in container with the NPC sprite. Then, it would be automatically picked with the NPC and you could refer to it without need to separately pick it.

  • Would I still be able to use the NPC family this way?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)