How do I do NPC interactions?

Get help using Construct 2

Post » Mon Feb 09, 2015 10:05 am

Hello Construct 2 Forums,
What I would like help with might be a simple process, but because I am new to construct, I am unsure how to approach this.

Say I want the player to talk to an NPC by pressing a certain key (E key) but I want the game to pause and make the player read through the text displayed to them on the screen, and the only way to move again is by depleting that dialogue. (Like a regular NPC interaction in a RPG game or something.)

Thank you for your time! :D
Posts: 2
Reputation: 154

Post » Mon Feb 09, 2015 10:40 am

Hey Keijimura, :)

You could place the events that handle player controlled movement inside a group, and then disable that group when the text pops up. When the player acknowledges the text, or it finishes displaying, you can then enable the group again allowing the player to move.

If you don't want to use groups, you could use a Boolean (e.g. bPlayerMovementAllowed) that can be toggled off or on by NPC text events. In the events that handle player movement you would include checks of that Boolean to make sure bPlayerMovementAllowed is true.
Posts: 350
Reputation: 6,479

Return to How do I....?

Who is online

Users browsing this forum: LiteSnacks, plinkie, PurifiedWater, Syazanie Amirin and 10 guests