0 votes

Hi everyone,

tapping on the "outside-button" opens a popup. The "inside-button" within that popup closes the popup. Now, tapping on the "outside-button" again opens the popup again just as it should, but the "inside-button" within isn't shown anymore... it's there – I can close the popup again – but it's not visible (unless I click at its empty spot, because its click-animation is then shown again anyway).

The "inside-button" is a separately created scene I then put into the popup-scene via "Instance Child Scene".
Of course it should appear every time I re-open the popup. What could be the problem? Any suggestions?

EDIT:
Apparently adding an animation to the "inside-Button" and triggering it when opening the popup does the trick. The weird thing is that the animation-state of the button at popup-closing will be remembered and displayed at next popup-opening... so, for example, if the button is supposed to fade in at popup-opening, it should animate to invisible at closing to avoid unpleasant "flickering" for a frame or so at opening again.
I wonder why it doesn't start at its supposed "original point zero" anytime I re-open the popup... is there any way to tell the button to "reset" at closing?

in Engine by (304 points)
edited by

Please log in or register to answer this question.

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.