Problem with visibility and buttons

Welcome to Portals United! / Forums / Troubleshooting / Problem with visibility and buttons

  • Author
    Posts
  • March 28, 2025 at 4:25 pm #1403

    We tried to create a quiz using the buttons, but something is going wrong. To test it, we did the following:

    1. We created 2 buttons (named 1 and 2) that, when clicked by the player, trigger other game objects.
    2. Once one of them is clicked, their visibility is set to false, and 2 different buttons appear in the same position (named 1.1 and 2.2). They are not yet connected to some other game object.
    3. During the test, the first part looks to work well. If, for example, we click button 1, the image corresponding to it becomes visible, and buttons 1 and 2 disappear. On the other hand, when clicking on the other set of buttons, in particular, the button not used before (button 2.2), the image connected to button 2 appears, while nothing should appear in this case.

    Is there a way to make this work?

    By trying to do this, we also realized that in order to be able to properly see the game objects when their visibility becomes true, we have to set their visibility to false at start in the logic editor. If we set them not visible in the location view, when we activate their visibility by clicking the buttons, they lose some features. Is this expected?

     

    March 31, 2025 at 9:54 am #1407

    You wrote
    By trying to do this, we also realized that in order to be able to properly see the game objects when their visibility becomes true, we have to set their visibility to false at start in the logic editor. If we set them not visible in the location view, when we activate their visibility by clicking the buttons, they lose some features. Is this expected?

    Yes, this is a bug.

    As for the first part, may I see the logic? I need to see the diagram and perhaps also the signals page.

     

    March 31, 2025 at 1:39 pm #1413

    Thank you for the answer. I started from scratch, and now it looks to work. Of course, the bug remains.

    March 31, 2025 at 3:57 pm #1416

    This bug should be fixed in our next release

  • You must be logged in to reply to this topic.