0 votes

I am not sure what this is called, but what I am trying to make is when a player interacts with a npc, a option box comes up and allows the player to pick an option. The player uses directional keys to select an option. I was thinking I would make the option box hidden until the player interacts with the npc. Is this the right way to do it? Thanks for the help.

in Engine by (26 points)

I don't know whether there's a "right way" to present an options dialog box. But you could have some Control nodes that are populated with the options that are then shown when necessary. You could even set some of the nodes in the editor to use the directional keys.

Ok, I think I understand a bit better on how to go with it. I will try and work on it. Thanks again.

1 Answer

+1 vote
Best answer

It depends on what kind of dialogue you want, but you could prefill a windowdialog or a popupmenu to listen in on the signal you want to trigger the event. Say, a click on the character, entering a certain area, whatever. When the signal is emitted, call a function to set the menu to visible.

by (95 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.