0 votes

I got CanvasLayer with label (i wrote "Game over" in it") (it is one scene) and i got scene "Player". When player is falling out of a map, i want to make the lable (from canvaslayer scene) visible. So how i can change visible/invisible for this label from the other scene (Player)? Thanks.

in Engine by (44 points)

1 Answer

0 votes
Best answer

You can do two things

  1. Instance the "Game over" Canvas layer into the player scene, and hide it. Only show it whenever you need too

  2. Make your "Game over" Canvas layer an singleton scene. Meaning it will always be open. So you would hide it and only show when needed. More on singletons here : https://docs.godotengine.org/en/stable/getting_started/step_by_step/singletons_autoload.html

by (611 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.