How do I set a layer visible by pressing a Button?

0 favourites
  • 3 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • Hi

    It's the first time I use Construct 2, and I don't know yet how to use it as I want.

    Well, the problem is that I have a layout named Lobby, in which I have two layers "Lobby" and "Crear Sala/Create Room", in which I would like to superimpose the layer "Create Room" over the "Lobby", but I want the Create Room to be smaller than the Lobby.

    I could make another Layout, but I think it will look better just with a Small layer, the problem is that when i choose in system's events to set the layer Visible, I only have the option to choose objects, and I can't set them visible neither because it asks me some expression, and I couldn't find any solution in the forum.

    I attach you two images, of what I see and what I would like, thanks!!

    The problem:

    What i want:

    EDIT:

    I hadn't seen the "beguinners's questions" sub-forum, maybe this questions suits better there, if any mod wants to move it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • To take the layer name you have to set it into a quote

    "MyLayerName"

    or

    use the number of the layer (but if you rearrange your layers the numbers will switch)

  • To take the layer name you have to set it into a quote

    "MyLayerName"

    or

    use the number of the layer (but if you rearrange your layers the numbers will switch)

    It was so easy that now I feel like a stupid...

    Thanks!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)