How can I make a frame turn invisible?

Hello

I have two frames, and a bar on top that is supposed to switch positions of those frames.
Everything works fine, however, upon selecting ‘Credits’ the ‘news’ frame remains visible.
I don’t want this to happen, and instead, I want anything that’s from the right side of
the GUI to disappear gradually when entering the left side.


image
Here’s a schematic

3 Likes

What’s exactly the problem ? The script doesn’t work ?

No, we’re in #help-and-feedback:art-design-support

I don’t know how to hide a portion of one frame, without hiding the entire frame

1 Like

Change the Zindex of the frame

No, I’m not trying to make the frame go behind the left side, I want it to disappear fully.
I have tried messing with ZIndexes of both but it just puts one behind or before the other, and that’s not what I’m trying to achieve.

If you want to make it invisible just uncheck Visible.

As I’ve said, I want to hide only a portion at a time, not the entire frame.

Make a frame put all you want to make invisible in and make it invisible then

You can’t hide portions of the frame directly but there are a few tricks you could do to achieve it.

  1. Make a bigger frame (let’s call it MainFrame)
  2. Turn on clip descendants for that frame
  3. Add in your frame as a child under the main frame
  4. Set the size/position of the frame you want cropped to offset
  5. Size the bigger frame and it should work.
1 Like