How do I toggle image on and off?

0 favourites
  • 4 posts
From the Asset Store
Toggles Dials Switches and Alerts ! A foundational sound grouping of Analog type switches and Steampunk effects
  • I am new to using Construct so this question is rather basic but it has me stumped. I am creating a software simulation and I want to be able to toggle screens on and off on the main menu by touching/clicking a menu item. I am trying to use If/Else logic but it's not responding to the mouse click. I would share my project but my company is blocking access to Google, OneDrive, and Dropbox. Below are screen captures of my project.

    Thanks for your help!

    I am using the latest version of Construct 3.

  • Just to clarify, I want to click on the red square sprite and have it display the nba layer.

  • Hi jsmit1208, when you're working with layers in Construct, you need to make sure you're using the correct layer names in Events.

    You've called your layer nba, but it looks like you're using 1 as the layer reference in your events. You'll need to use "nba" as the layer call, as opposed to 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The events look correct to me as you can use the layer index to reference the layer. To me it looks like the issue is:

    the instance is invisible and setting the layer to visible does not set any instance on it to visible, layer and instance visibility is separate.

    To fix it make sure you set both the instance and the layer visible, or set the instance to visible and only toggle the layers visibility (or vice versa).

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