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!
Develop games in your browser. Powerful, performant & highly capable.
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.