Do not set invisible while clicking certain part of sprite

0 favourites
  • 4 posts
From the Asset Store
Click! Click! 136 click sounds for your video games or media projects
  • Hey,

    I have layers 0, 1, 2, and 3. When clicking the 'open' sprite on layer 1, the 'map' and 'background' sprites become visible. The 'map' opens on layer 3, and a dimmed 'background' appears on layer 2. I also have an 'X' to close both of these. This part works fine. However, I tried to add a feature where you can close the map and background by clicking the background. I don't want these to close if the 'map' is clicked (the 'background' underneath the 'map').

    Ty:)

  • One idea would be:

    On Mouse Clicked on BG
    Mouse cursor is not over Map: ----------> Close
    
  • I have license in older version of construct 2 (266). There is only 'Cursor is over object' option when adding a condition :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have license in older version of construct 2 (266). There is only 'Cursor is over object' option when adding a condition :/

    Yes, that's the one, you just have to invert it to make it negative:

    Cursor is over object <------Invert it
    

    If you want to make any condition negative in construct this is what you do:

    1-Right-Mouse click on the condition

    2-It will open a panel and select "Invert"

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