0 votes

I was wondering how to make a "remote" (if that's what its called) In my game there is a key mechanic, and a GUI to indicate weather or not a player has a key. I wanted to use a remote event when a player picks up a key so the GUI will show; and one for when the player uses the key the GUI will hide.

in Engine by (51 points)

1 Answer

0 votes
Best answer

The first thing that comes to mind with your question are the signals:
https://docs.godotengine.org/en/3.1/getting_started/step_by_step/signals.html

Although your question has to do, I think, with the details of the implementation. For that I leave this tutorial (it is not video) very well explained:
https://www.davidepesce.com/2019/10/30/godot-tutorial-9-designing-game-gui/

(I recommend starting it from the beginning if you have time).
In this part he creates a simple GUI and he use signals to update it when the player submits an event. It is a very good example to understand how to use the signals and I think it can be applied to your game.

by (2,252 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 Frequently asked questions and 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 [email protected] with your username.