Layer visibility issues...

0 favourites
  • 2 posts
From the Asset Store
4K Hand Painting, 300 dpi and layer layer, psd and png files. 3200 x 4200
  • Hey guys, I'm stumped. Now please keep in mind I am an absolute beginner so go easy on me. Below is the relevant part of my event list for the game I'm making. I don't know if I'm just using sub-events incorrectly, but here's what is happening.

    I thought that, given there's a condition for the layer to visible, then interacting with the buttons wouldn't be possible once a button was pressed. Yet, I still can (ex: gaining depth, gold, and taking damage when clicking on where the "hole" option used to be). I got around this by changing the conditions to check if the sprites are visible rather than the whole layer.

    But I don't understand, why wouldn't the layer visibility condition do the trick? Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's difficult to tell from the screenshot.

    I suggest changing layer interactivity instead. When layer interactive=No, it doesn't receive mouse and touch events. So you will not need to check for layer/sprite visibility.

    Also, I suggest always using layer names in events rather than layer numbers. If you decide to add/remove any layers in the future, you will have to update layer numbers in all events. With names you won't have this problem.

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