Inserting Condition

0 favourites
  • 6 posts
  • I have a "Save" button and when the HUD is visible, the user can press it to save. Then they make the HUD invisible again. But if you press where the save button is it will still save even when the image is invisible.

    I'm trying to add the condition if "Save" is visible - but I can't because it's an "or" block. If I try to add another condition it adds another "or" block. Here is the code:

    <img src="" border="0" />

    This is what happens when I try...

    <img src="" border="0" />

  • OR blocks will be put in between every condition. Use a sub-event (press S)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks I did that but now it saves and loads just if they're visible. They should wait until they're touched... ?

    <img src="" border="0" />

  • Split them up to :


    On S pressed AND Save is visible > Save game

    Is touching Save AND Save is visible > Save game


    Also am I missing something here, when does Save get set to invisible? : S

  • Thanks I don't know why I didn't think to split them up. Now it works well. The save button gets to invisible when the user chooses to "hide" the HUD. I have a HUD button so they can hide it if they want to get more viewing area during gameplay.

    Here's the working code

    <img src="" border="0" />

  • Cool, glad that it works!

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